프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$code | ValueObjects\Geography\CountryCode |
메소드 | 설명 | |
---|---|---|
__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 static fromNative ( ) : self | ||
리턴 | self |
public getCode ( ) : ValueObjects\Geography\CountryCode | ||
리턴 | ValueObjects\Geography\CountryCode |
public sameValueAs ( ValueObjects\ValueObjectInterface $country ) : boolean | ||
$country | ValueObjects\ValueObjectInterface | |
리턴 | boolean |