Class Customer
Class Customer
This class is used for managing customer data
-
Customer
implements
CustomerInterface
Methods summary
public
__construct( void )
Constructor of the class Customer
Constructor of the class Customer
public
getId( void )
: integer
Returns the customer's ID.
Returns the customer's ID.
Returns
integer
Customer's ID.
Implementation of
public
getCustomerNumber( void )
: string
Returns the customer's number.
Returns the customer's number.
Returns
string
customerNumber Customer's number.
Implementation of
public
getStatusId( void )
: integer
Returns the customer's status ID.
Returns the customer's status ID.
Returns
integer
customerStatusId Customer's status ID.
Implementation of
public
setStatusId( integer $p_statusId )
Sets the customer's status ID.
Sets the customer's status ID.
Parameters
$p_statusId
- Customer's status ID.
Throws
InvalidArgumentException
Implementation of
public
isGuest( void )
: boolean
Checks if customer is a guest.
Checks if customer is a guest.
Returns
boolean
Is customer a guest?
Implementation of
public
getDateOfBirth( void )
: DateTime
Returns the customer's date of birth.
Returns the customer's date of birth.
Returns
DateTime
date of birth Customer's date of birth.
Implementation of
public
getVatNumberStatus( void )
: integer
Returns the customer's VAT number status.
Returns the customer's VAT number status.
Returns
integer
Customer's VAT number status.
Implementation of
public
setGuest( boolean $p_isPGuest )
Sets the customer's guest status.
Sets the customer's guest status.
Parameters
$p_isPGuest
- Customer's guest status.
Throws
InvalidArgumentException
if $p_isGuest is not a boolean value
Implementation of
public
setId( IdType $id )
Sets the customer's ID.
Parameters
$id
- customerId Customer ID.
Throws
InvalidArgumentException
If $p_id is not an integer or if $p_id is lower than 1.
Implementation of
public
setGender( CustomerGenderInterface $gender )
Sets the customer's gender.
Sets the customer's gender.
Parameters
$gender
- Customer's gender.
Implementation of
public
setLastname( CustomerLastnameInterface $lastname )
Sets the customer's last name.
Sets the customer's last name.
Parameters
$lastname
- Customer's last name.
Implementation of
public
setDateOfBirth( DateTime $dateOfBirth )
Sets the customer's date of birth.
Sets the customer's date of birth.
Parameters
$dateOfBirth
- date of birth Customer's date of birth.
Implementation of
public
setVatNumberStatus( integer $p_vatNumberStatus )
Sets the customer's VAT number status.
Sets the customer's VAT number status.
Parameters
$p_vatNumberStatus
- Customer's VAT number status.
Implementation of
public
getAddonValue( StringType $key )
: string
Get Addon Value
Returns the addon value of a product, depending on the provided key.
Parameters
$key
- The key of the addon value to return.
Returns
string
The addon value.
Throws
InvalidArgumentException
if the key is not valid.
Implementation of
public
deleteAddonValue( StringType $key )
: GXEngineProduct
Delete Addon Value
Deletes an addon value of a product.
Parameters
$key
- The key of the addon value to delete.
Returns
Throws
InvalidArgumentException
if the key is not valid.
Implementation of
Properties summary
protected
$vatNumberStatus
: integer
Customer VAT number status.
Customer VAT number status.
0