phpDocumentor

Customer extends AbstractEventRaisingEntity

Class Customer

Table of Contents

$businessInformation  : BusinessInformation
$contactInformation  : ContactInformation
$credit  : CustomerCredit
$customerGroup  : CustomerGroup
$id  : CustomerId
$isFavorite  : bool
$isGuestAccount  : bool
$personalInformation  : PersonalInformation
$raisedEvents  : array<string|int, object>
__construct()  : mixed
changeBusinessInformation()  : void
Changes business information of the customer.
changeContactInformation()  : void
Changes contact information of the customer.
changeCredit()  : void
Changes credit of the customer.
changeCustomerGroup()  : void
Changes customer group of the customer.
changeIsFavoriteState()  : void
Changes the is-favorite state of the customer.
changePersonalInformation()  : void
Changes personal information of the customer.
companyName()  : string
Return the company name of the customer.
create()  : Customer
credit()  : float
Return the credit of the customer.
customerGroup()  : int
Return the customer group ID of the customer.
customerNumber()  : string
Return the customer number of the customer.
dateOfBirth()  : string|null
Return the date of birth of the customer.
email()  : string
Return the email of the customer.
faxNumber()  : string
Return the fax number of the customer.
firstName()  : string
Return the first name of the customer.
gender()  : string
Return the gender of the customer.
id()  : int
Return the ID of the customer.
isFavorite()  : bool
Return the is-favorite state of the customer.
isGuestAccount()  : bool
Return the is-guest-account state of the customer.
isTradesperson()  : bool
Return the is-merchant state of the customer.
isValidVatId()  : bool
Return the status of the VAT ID (valid or not).
lastName()  : string
Return the last name of the customer.
phoneNumber()  : string
Return the phone number of the customer.
releaseEvents()  : array<string|int, object>
toArray()  : array<string|int, mixed>
Return internal data structure as array.
vatId()  : string
Return the VAT ID of the customer.
raiseEvent()  : void

Properties

$isGuestAccount

private bool $isGuestAccount

Methods

__construct()

public __construct(CustomerId $id, CustomerGroup $customerGroup, PersonalInformation $personalInformation, BusinessInformation $businessInformation, ContactInformation $contactInformation, CustomerCredit $credit, bool $isGuestAccount, bool $isFavorite) : mixed
Parameters
$id : CustomerId
$customerGroup : CustomerGroup
$personalInformation : PersonalInformation
$businessInformation : BusinessInformation
$contactInformation : ContactInformation
$credit : CustomerCredit
$isGuestAccount : bool
$isFavorite : bool
Return values
mixed

changeBusinessInformation()

Changes business information of the customer.

public changeBusinessInformation(BusinessInformation $businessInformation) : void
Parameters
$businessInformation : BusinessInformation
Return values
void

changeContactInformation()

Changes contact information of the customer.

public changeContactInformation(ContactInformation $contactInformation) : void
Parameters
$contactInformation : ContactInformation
Return values
void

changeCustomerGroup()

Changes customer group of the customer.

public changeCustomerGroup(CustomerGroup $customerGroup) : void
Parameters
$customerGroup : CustomerGroup
Return values
void

changeIsFavoriteState()

Changes the is-favorite state of the customer.

public changeIsFavoriteState(bool $isFavorite) : void
Parameters
$isFavorite : bool
Return values
void

changePersonalInformation()

Changes personal information of the customer.

public changePersonalInformation(PersonalInformation $personalInformation) : void
Parameters
$personalInformation : PersonalInformation
Return values
void

companyName()

Return the company name of the customer.

public companyName() : string
Return values
string

create()

public static create(CustomerId $id, CustomerGroup $customerGroup, PersonalInformation $personalInformation, BusinessInformation $businessInformation, ContactInformation $contactInformation, CustomerCredit $credit[, bool $isGuestAccount = false ][, bool $isFavorite = false ]) : Customer
Parameters
$id : CustomerId
$customerGroup : CustomerGroup
$personalInformation : PersonalInformation
$businessInformation : BusinessInformation
$contactInformation : ContactInformation
$credit : CustomerCredit
$isGuestAccount : bool = false
$isFavorite : bool = false
Return values
Customer

credit()

Return the credit of the customer.

public credit() : float
Return values
float

customerGroup()

Return the customer group ID of the customer.

public customerGroup() : int
Return values
int

customerNumber()

Return the customer number of the customer.

public customerNumber() : string
Return values
string

dateOfBirth()

Return the date of birth of the customer.

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

email()

Return the email of the customer.

public email() : string
Return values
string

faxNumber()

Return the fax number of the customer.

public faxNumber() : string
Return values
string

firstName()

Return the first name of the customer.

public firstName() : string
Return values
string

gender()

Return the gender of the customer.

public gender() : string
Return values
string

id()

Return the ID of the customer.

public id() : int
Return values
int

isFavorite()

Return the is-favorite state of the customer.

public isFavorite() : bool
Return values
bool

isGuestAccount()

Return the is-guest-account state of the customer.

public isGuestAccount() : bool
Return values
bool

isTradesperson()

Return the is-merchant state of the customer.

public isTradesperson() : bool
Return values
bool

isValidVatId()

Return the status of the VAT ID (valid or not).

public isValidVatId() : bool
Return values
bool

lastName()

Return the last name of the customer.

public lastName() : string
Return values
string

phoneNumber()

Return the phone number of the customer.

public phoneNumber() : string
Return values
string

toArray()

Return internal data structure as array.

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>

vatId()

Return the VAT ID of the customer.

public vatId() : string
Return values
string

Search results