phpDocumentor

CustomerAddress extends AbstractEventRaisingEntity

Class CustomerAddress

Table of Contents

$creationTime  : DateTimeImmutable
$customerAddressId  : CustomerAddressId
$customerId  : CustomerId
$isDefaultForPayment  : bool
$isDefaultForShipping  : bool
$locationInformation  : LocationInformation
$personalInformation  : PersonalInformation
$raisedEvents  : array<string|int, object>
$updatedAtTime  : DateTimeImmutable
additionalInformation()  : string
changeLocationInformation()  : void
changePersonalInformation()  : void
city()  : string
companyName()  : string
country()  : CustomerAddressCountry
countryIsoCode2()  : string
countryName()  : string
create()  : CustomerAddress
creationTime()  : string
customerId()  : int
firstName()  : string
gender()  : string
houseNumber()  : string
id()  : int
isDefaultForPayment()  : bool
isDefaultForShipping()  : bool
lastName()  : string
postcode()  : string
releaseEvents()  : array<string|int, object>
state()  : CustomerAddressState
stateId()  : int
stateName()  : string
streetName()  : string
suburb()  : string
toArray()  : array<string|int, mixed>
updatedAtTime()  : string
raiseEvent()  : void
__construct()  : mixed

Properties

Methods

additionalInformation()

public additionalInformation() : string
Return values
string —

companyName()

public companyName() : string
Return values
string —

countryIsoCode2()

public countryIsoCode2() : string
Return values
string —

countryName()

public countryName() : string
Return values
string —

create()

public static create(CustomerAddressId $customerAddressId, CustomerId $customerId, PersonalInformation $personalInformation, LocationInformation $locationInformation, DateTimeImmutable $creationTime, DateTimeImmutable $updatedAtTime[, bool $isDefaultForShipping = false ][, bool $isDefaultForPayment = false ]) : CustomerAddress
Parameters
$customerAddressId : CustomerAddressId
$customerId : CustomerId
$personalInformation : PersonalInformation
$locationInformation : LocationInformation
$creationTime : DateTimeImmutable
$updatedAtTime : DateTimeImmutable
$isDefaultForShipping : bool = false
$isDefaultForPayment : bool = false
Return values
CustomerAddress —

creationTime()

public creationTime([string $datetimeFormat = 'Y-m-d H:i:s' ]) : string
Parameters
$datetimeFormat : string = 'Y-m-d H:i:s'
Return values
string —

firstName()

public firstName() : string
Return values
string —

houseNumber()

public houseNumber() : string
Return values
string —

isDefaultForPayment()

public isDefaultForPayment() : bool
Return values
bool —

isDefaultForShipping()

public isDefaultForShipping() : bool
Return values
bool —

lastName()

public lastName() : string
Return values
string —

postcode()

public postcode() : string
Return values
string —

releaseEvents()

public releaseEvents() : array<string|int, object>
Return values
array<string|int, object> —

stateName()

public stateName() : string
Return values
string —

streetName()

public streetName() : string
Return values
string —

toArray()

public toArray([string $datetimeFormat = 'Y-m-d H:i:s' ]) : array<string|int, mixed>
Parameters
$datetimeFormat : string = 'Y-m-d H:i:s'
Return values
array<string|int, mixed> —

updatedAtTime()

public updatedAtTime([string $datetimeFormat = 'Y-m-d H:i:s' ]) : string
Parameters
$datetimeFormat : string = 'Y-m-d H:i:s'
Return values
string —

__construct()

private __construct(CustomerAddressId $customerAddressId, CustomerId $customerId, PersonalInformation $personalInformation, LocationInformation $locationInformation, DateTimeImmutable $creationTime, DateTimeImmutable $updatedAtTime[, bool $isDefaultForShipping = false ][, bool $isDefaultForPayment = false ]) : mixed
Parameters
$customerAddressId : CustomerAddressId
$customerId : CustomerId
$personalInformation : PersonalInformation
$locationInformation : LocationInformation
$creationTime : DateTimeImmutable
$updatedAtTime : DateTimeImmutable
$isDefaultForShipping : bool = false
$isDefaultForPayment : bool = false
Return values
mixed —

Search results