Свойство | Type | Description | |
---|---|---|---|
$code | ValueObjects\Geography\CountryCode |
Méthode | Description | |
---|---|---|
__construct ( ValueObjects\Geography\CountryCode $code ) | Returns a new Country object | |
__toString ( ) : string | Returns country name as native string | |
fromNative ( ) : self | Returns a new Country object given a native PHP string country code | |
getCode ( ) : ValueObjects\Geography\CountryCode | Returns country code | |
getName ( ) : StringLiteral | Returns country name | |
sameValueAs ( ValueObjects\ValueObjectInterface $country ) : boolean | Tells whether two Country are equal |
public __construct ( ValueObjects\Geography\CountryCode $code ) | ||
$code | ValueObjects\Geography\CountryCode |
public __toString ( ) : string | ||
Résultat | string |
public static fromNative ( ) : self | ||
Résultat | self |
public getCode ( ) : ValueObjects\Geography\CountryCode | ||
Résultat | ValueObjects\Geography\CountryCode |
public getName ( ) : StringLiteral | ||
Résultat | StringLiteral |
public sameValueAs ( ValueObjects\ValueObjectInterface $country ) : boolean | ||
$country | ValueObjects\ValueObjectInterface | |
Résultat | boolean |