Property | Type | Description | |
---|---|---|---|
$code | ValueObjects\Geography\CountryCode |
Method | 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 | ||
return | string |
public static fromNative ( ) : self | ||
return | self |
public getCode ( ) : ValueObjects\Geography\CountryCode | ||
return | ValueObjects\Geography\CountryCode |
public getName ( ) : StringLiteral | ||
return | StringLiteral |
public sameValueAs ( ValueObjects\ValueObjectInterface $country ) : boolean | ||
$country | ValueObjects\ValueObjectInterface | |
return | boolean |