Skip to content

Address

Properties

name

protected \Qubus\ValueObjects\StringLiteral\StringLiteral $name

street

protected \Qubus\ValueObjects\Geography\Street $street

district

protected \Qubus\ValueObjects\StringLiteral\StringLiteral $district

city

protected \Qubus\ValueObjects\StringLiteral\StringLiteral $city

region

protected \Qubus\ValueObjects\StringLiteral\StringLiteral $region

postalCode

protected \Qubus\ValueObjects\StringLiteral\StringLiteral $postalCode

country

protected \Qubus\ValueObjects\Geography\Country $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.

public __toString(): string

fromNative

Returns a new Address from native PHP arguments.

public static fromNative(): \Qubus\ValueObjects\Geography\Address|\Qubus\ValueObjects\ValueObject
  • This method is static.

Throws:


equals

Tells whether two Address are equal.

public equals(\Qubus\ValueObjects\Geography\Address|\Qubus\ValueObjects\ValueObject $address): bool

Parameters:

Parameter Type Description
$address \Qubus\ValueObjects\Geography\Address|\Qubus\ValueObjects\ValueObject

getName

Returns addressee name.

public getName(): \Qubus\ValueObjects\StringLiteral\StringLiteral

getStreet

Returns street.

public getStreet(): \Qubus\ValueObjects\Geography\Street

getDistrict

Returns district.

public getDistrict(): \Qubus\ValueObjects\StringLiteral\StringLiteral

getCity

Returns city.

public getCity(): \Qubus\ValueObjects\StringLiteral\StringLiteral

getRegion

Returns region.

public getRegion(): \Qubus\ValueObjects\StringLiteral\StringLiteral

getPostalCode

Returns postal code.

public getPostalCode(): \Qubus\ValueObjects\StringLiteral\StringLiteral

getCountry

Returns country.

public getCountry(): \Qubus\ValueObjects\Geography\Country


Automatically generated on 2025-10-13