phpDocumentor

CustomerMapper extends CustomerFactory

Class CustomerMapper

Table of Contents

createBusinessInformation()  : BusinessInformation
Creates and returns the business information of a customer.
createContactInformation()  : ContactInformation
Creates and returns the contact information of a customer.
createCredit()  : CustomerCredit
Creates and returns a customer credit.
createCustomerGroup()  : CustomerGroup
Creates and returns a customer group.
createCustomerId()  : CustomerId
Creates and returns a customer ID.
createCustomerIds()  : CustomerIds
Creates and returns a collection of customer IDs.
createCustomers()  : Customers
Creates and returns a collection of customers.
createPersonalInformation()  : PersonalInformation
Creates and returns the personal information of a customer.
mapCustomer()  : Customer
mapCustomers()  : Customers

Methods

createBusinessInformation()

Creates and returns the business information of a customer.

public createBusinessInformation([string $companyName = '' ][, string $vatId = '' ][, bool $isTradesperson = false ][, bool $isValidVatId = false ]) : BusinessInformation
Parameters
$companyName : string = ''
$vatId : string = ''
$isTradesperson : bool = false
$isValidVatId : bool = false
Return values
BusinessInformation

createPersonalInformation()

Creates and returns the personal information of a customer.

public createPersonalInformation([string $gender = '' ][, string $firstName = '' ][, string $lastName = '' ][, string $customerNumber = '' ][, DateTimeImmutable|null $dateOfBirth = null ]) : PersonalInformation
Parameters
$gender : string = ''
$firstName : string = ''
$lastName : string = ''
$customerNumber : string = ''
$dateOfBirth : DateTimeImmutable|null = null
Return values
PersonalInformation

mapCustomers()

public mapCustomers(array<string|int, mixed> ...$customers) : Customers
Parameters
$customers : array<string|int, mixed>
Return values
Customers

Search results