phpDocumentor

Customer
in package
implements CustomerInterface

Class Customer

This class is used for managing customer data

Tags
category

System

implements

CustomerInterface

Interfaces, Classes and Traits

CustomerInterface
Interface CustomerInterface

Table of Contents

FALLBACK_PASSWORD_ENTROPY_SIZE  = 128
$addonValues  : EditableKeyValueCollection
Addons collection.
$company  : CustomerCompanyInterface
$customerNumber  : CustomerNumberInterface
Customer number.
$customerStatusId  : int
Customer status ID.
$dateOfBirth  : DateTime
Customer date of birth.
$defaultAddress  : CustomerAddressInterface
Customer default address.
$email  : CustomerEmailInterface
Customer E-Mail address.
$faxNumber  : CustomerCallNumberInterface
Customer fax number.
$firstname  : CustomerFirstnameInterface
Customer first name.
$gender  : CustomerGenderInterface
Customer gender.
$id  : int
Customer ID.
$isGuest  : bool
Customer guest status.
$lastname  : CustomerLastnameInterface
Customer last name.
$password  : CustomerPasswordInterface
Customer password.
$telephoneNumber  : CustomerCallNumberInterface
Customer call number.
$vatNumber  : CustomerVatNumberInterface
Customer VAT number.
$vatNumberStatus  : int
Customer VAT number status.
__construct()  : mixed
Constructor of the class Customer
addAddonValues()  : GXEngineProduct
Add Addon Values
deleteAddonValue()  : GXEngineProduct
Delete Addon Value
getAddonValue()  : string
Get Addon Value
getAddonValueContainerId()  : int
Returns the customer ID.
getAddonValues()  : KeyValueCollection
Get Addon Values
getCompany()  : CustomerCompanyInterface
getCustomerNumber()  : string
Returns the customer's number.
getDateOfBirth()  : DateTime
Returns the customer's date of birth.
getDefaultAddress()  : CustomerAddressInterface
Returns the customer's default address.
getEmail()  : CustomerEmailInterface
Returns the customer's email.
getFaxNumber()  : CustomerCallNumberInterface
Returns the customer's fax number.
getFirstname()  : CustomerFirstnameInterface
Returns the customer's first name.
getGender()  : CustomerGenderInterface
Returns the customer's gender.
getId()  : int
Returns the customer's ID.
getLastname()  : CustomerLastnameInterface
Returns the customer's last name.
getPassword()  : CustomerPasswordInterface
Returns the customer's password.
getStatusId()  : int
Returns the customer's status ID.
getTelephoneNumber()  : CustomerCallNumberInterface
Returns the customer's telephone number.
getVatNumber()  : CustomerVatNumberInterface
Returns the customer's VAT number.
getVatNumberStatus()  : int
Returns the customer's VAT number status.
isGuest()  : bool
Checks if customer is a guest.
setAddonValue()  : GXEngineProduct
Set Addon Value
setCompany()  : void
setCustomerNumber()  : mixed
Sets the customer's number.
setDateOfBirth()  : mixed
Sets the customer's date of birth.
setDefaultAddress()  : mixed
Sets the customer's default address.
setEmail()  : mixed
Sets the customer's email.
setFaxNumber()  : mixed
Sets the customer's fax number.
setFirstname()  : mixed
Sets the customer's first name.
setGender()  : mixed
Sets the customer's gender.
setGuest()  : mixed
Sets the customer's guest status.
setId()  : mixed
Sets the customer's ID.
setLastname()  : mixed
Sets the customer's last name.
setPassword()  : mixed
Sets the customer's password.
setStatusId()  : mixed
Sets the customer's status ID.
setTelephoneNumber()  : mixed
Sets the customer's telephone number.
setVatNumber()  : mixed
Sets the customer's VAT number.
setVatNumberStatus()  : mixed
Sets the customer's VAT number status.
makeFallbackPassword()  : NonEmptyStringType
Create a default password using the best entropy source available.

Constants

FALLBACK_PASSWORD_ENTROPY_SIZE

public mixed FALLBACK_PASSWORD_ENTROPY_SIZE = 128

Properties

$customerStatusId

Customer status ID.

protected int $customerStatusId = 1

$dateOfBirth

Customer date of birth.

protected DateTime $dateOfBirth

$isGuest

Customer guest status.

protected bool $isGuest = alse

$vatNumberStatus

Customer VAT number status.

protected int $vatNumberStatus = 0

Methods

__construct()

Constructor of the class Customer

public __construct() : mixed
Return values
mixed

deleteAddonValue()

Delete Addon Value

public deleteAddonValue(StringType $key) : GXEngineProduct

Deletes an addon value of a product.

Parameters
$key : StringType

The key of the addon value to delete.

Tags
throws
InvalidArgumentException

if the key is not valid.

Return values
GXEngineProduct

Same instance for chained method calls.

getAddonValue()

Get Addon Value

public getAddonValue(StringType $key) : string

Returns the addon value of a product, depending on the provided key.

Parameters
$key : StringType

The key of the addon value to return.

Tags
throws
InvalidArgumentException

if the key is not valid.

Return values
string

The addon value.

getAddonValueContainerId()

Returns the customer ID.

public getAddonValueContainerId() : int
Return values
int

getCustomerNumber()

Returns the customer's number.

public getCustomerNumber() : string
Return values
string

customerNumber Customer's number.

getDateOfBirth()

Returns the customer's date of birth.

public getDateOfBirth() : DateTime
Return values
DateTime

date of birth Customer's date of birth.

getId()

Returns the customer's ID.

public getId() : int
Return values
int

Customer's ID.

getStatusId()

Returns the customer's status ID.

public getStatusId() : int
Return values
int

customerStatusId Customer's status ID.

getVatNumberStatus()

Returns the customer's VAT number status.

public getVatNumberStatus() : int
Return values
int

Customer's VAT number status.

isGuest()

Checks if customer is a guest.

public isGuest() : bool
Return values
bool

Is customer a guest?

setDateOfBirth()

Sets the customer's date of birth.

public setDateOfBirth(DateTime $dateOfBirth) : mixed
Parameters
$dateOfBirth : DateTime

date of birth Customer's date of birth.

Return values
mixed

setGuest()

Sets the customer's guest status.

public setGuest(bool $p_isPGuest) : mixed
Parameters
$p_isPGuest : bool

Customer's guest status.

Tags
throws
InvalidArgumentException

if $p_isGuest is not a boolean value

Return values
mixed

setId()

Sets the customer's ID.

public setId(IdType $id) : mixed
Parameters
$id : IdType

customerId Customer ID.

Tags
throws
InvalidArgumentException

If $p_id is not an integer or if $p_id is lower than 1.

Return values
mixed

setStatusId()

Sets the customer's status ID.

public setStatusId(int $p_statusId) : mixed
Parameters
$p_statusId : int

Customer's status ID.

Tags
throws
InvalidArgumentException
Return values
mixed

setVatNumberStatus()

Sets the customer's VAT number status.

public setVatNumberStatus(int $p_vatNumberStatus) : mixed
Parameters
$p_vatNumberStatus : int

Customer's VAT number status.

Return values
mixed

Search results