Country
- Full name:
\Qubus\ValueObjects\Geography\Country
- This class implements:
\Qubus\ValueObjects\ValueObject
Properties
code
Methods
__construct
Returns a new Country object.
Parameters:
Parameter | Type | Description |
---|---|---|
$code | \Qubus\ValueObjects\Geography\CountryCode |
__toString
Returns country name as native string.
fromNative
Returns a new Country object given a native PHP string country code.
- This method is static.
equals
Tells whether two Country are equal.
Parameters:
Parameter | Type | Description |
---|---|---|
$country | \Qubus\ValueObjects\Geography\Country|\Qubus\ValueObjects\ValueObject |
getCode
Returns country code.
getName
Returns country name.
Automatically generated on 2025-10-13