Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
__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 | ||
return | string |
public static fromNative ( ) : self | ||
return | self |
public getCity ( ) : ValueObjects\StringLiteral\StringLiteral | ||
return | ValueObjects\StringLiteral\StringLiteral |
public getDistrict ( ) : ValueObjects\StringLiteral\StringLiteral | ||
return | ValueObjects\StringLiteral\StringLiteral |
public getName ( ) : ValueObjects\StringLiteral\StringLiteral | ||
return | ValueObjects\StringLiteral\StringLiteral |
public getPostalCode ( ) : ValueObjects\StringLiteral\StringLiteral | ||
return | ValueObjects\StringLiteral\StringLiteral |
public getRegion ( ) : ValueObjects\StringLiteral\StringLiteral | ||
return | ValueObjects\StringLiteral\StringLiteral |
public sameValueAs ( ValueObjects\ValueObjectInterface $address ) : boolean | ||
$address | ValueObjects\ValueObjectInterface | |
return | boolean |
protected StringLiteral,ValueObjects\StringLiteral $city | ||
return | ValueObjects\StringLiteral\StringLiteral |
protected StringLiteral,ValueObjects\StringLiteral $district | ||
return | ValueObjects\StringLiteral\StringLiteral |
protected StringLiteral,ValueObjects\StringLiteral $name | ||
return | ValueObjects\StringLiteral\StringLiteral |
protected StringLiteral,ValueObjects\StringLiteral $postalCode | ||
return | ValueObjects\StringLiteral\StringLiteral |
protected StringLiteral,ValueObjects\StringLiteral $region | ||
return | ValueObjects\StringLiteral\StringLiteral |