Address
- Full name:
\Qubus\ValueObjects\Geography\Address
- This class implements:
\Qubus\ValueObjects\ValueObject
Properties
name
street
district
city
region
postalCode
country
Methods
__construct
Returns a new Address object.
public __construct(\Qubus\ValueObjects\StringLiteral\StringLiteral $name, \Qubus\ValueObjects\Geography\Street $street, \Qubus\ValueObjects\StringLiteral\StringLiteral $district, \Qubus\ValueObjects\StringLiteral\StringLiteral $city, \Qubus\ValueObjects\StringLiteral\StringLiteral $region, \Qubus\ValueObjects\StringLiteral\StringLiteral $postalCode, \Qubus\ValueObjects\Geography\Country $country): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$name | \Qubus\ValueObjects\StringLiteral\StringLiteral | |
$street | \Qubus\ValueObjects\Geography\Street | |
$district | \Qubus\ValueObjects\StringLiteral\StringLiteral | |
$city | \Qubus\ValueObjects\StringLiteral\StringLiteral | |
$region | \Qubus\ValueObjects\StringLiteral\StringLiteral | |
$postalCode | \Qubus\ValueObjects\StringLiteral\StringLiteral | |
$country | \Qubus\ValueObjects\Geography\Country |
__toString
Returns a string representation of the Address in US standard format.
fromNative
Returns a new Address from native PHP arguments.
- This method is static.
Throws:
equals
Tells whether two Address are equal.
Parameters:
Parameter | Type | Description |
---|---|---|
$address | \Qubus\ValueObjects\Geography\Address|\Qubus\ValueObjects\ValueObject |
getName
Returns addressee name.
getStreet
Returns street.
getDistrict
Returns district.
getCity
Returns city.
getRegion
Returns region.
getPostalCode
Returns postal code.
getCountry
Returns country.
Automatically generated on 2025-10-13