프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$city | ValueObjects\StringLiteral\StringLiteral | City/Town/Village | |
$country | |||
$district | ValueObjects\StringLiteral\StringLiteral | District/City area | |
$name | ValueObjects\StringLiteral\StringLiteral | Name of the addressee (natural person or company) | |
$postalCode | ValueObjects\StringLiteral\StringLiteral | Postal code/P.O. Box/ZIP code | |
$region | ValueObjects\StringLiteral\StringLiteral | Region/County/State | |
$street |
메소드 | 설명 | |
---|---|---|
__construct ( ValueObjects\StringLiteral\StringLiteral $name, |
Returns a new Address object | |
__toString ( ) : string | Returns a string representation of the Address in US standard format. | |
fromNative ( ) : self | Returns a new Address from native PHP arguments | |
getCity ( ) : ValueObjects\StringLiteral\StringLiteral | Returns city | |
getCountry ( ) : |
Returns country | |
getDistrict ( ) : ValueObjects\StringLiteral\StringLiteral | Returns district | |
getName ( ) : ValueObjects\StringLiteral\StringLiteral | Returns addressee name | |
getPostalCode ( ) : ValueObjects\StringLiteral\StringLiteral | Returns postal code | |
getRegion ( ) : ValueObjects\StringLiteral\StringLiteral | Returns region | |
getStreet ( ) : |
Returns street | |
sameValueAs ( ValueObjects\ValueObjectInterface $address ) : boolean | Tells whether two Address are equal |
public __construct ( ValueObjects\StringLiteral\StringLiteral $name, |
||
$name | ValueObjects\StringLiteral\StringLiteral | |
$street | ||
$district | ValueObjects\StringLiteral\StringLiteral | |
$city | ValueObjects\StringLiteral\StringLiteral | |
$region | ValueObjects\StringLiteral\StringLiteral | |
$postalCode | ValueObjects\StringLiteral\StringLiteral | |
$country |
public __toString ( ) : string | ||
리턴 | string |
public static fromNative ( ) : self | ||
리턴 | self |
public getCity ( ) : ValueObjects\StringLiteral\StringLiteral | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
public getDistrict ( ) : ValueObjects\StringLiteral\StringLiteral | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
public getName ( ) : ValueObjects\StringLiteral\StringLiteral | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
public getPostalCode ( ) : ValueObjects\StringLiteral\StringLiteral | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
public getRegion ( ) : ValueObjects\StringLiteral\StringLiteral | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
public sameValueAs ( ValueObjects\ValueObjectInterface $address ) : boolean | ||
$address | ValueObjects\ValueObjectInterface | |
리턴 | boolean |
protected StringLiteral,ValueObjects\StringLiteral $city | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
protected StringLiteral,ValueObjects\StringLiteral $district | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
protected StringLiteral,ValueObjects\StringLiteral $name | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
protected StringLiteral,ValueObjects\StringLiteral $postalCode | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
protected StringLiteral,ValueObjects\StringLiteral $region | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |