CustomerMapper
extends CustomerFactory
in package
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 —createContactInformation()
Creates and returns the contact information of a customer.
public
createContactInformation(string $email[, string $phoneNumber = '' ][, string $faxNumber = '' ]) : ContactInformation
Parameters
- $email : string
- $phoneNumber : string = ''
- $faxNumber : string = ''
Tags
Return values
ContactInformation —createCredit()
Creates and returns a customer credit.
public
createCredit([float $credit = 0.0 ]) : CustomerCredit
Parameters
- $credit : float = 0.0
Return values
CustomerCredit —createCustomerGroup()
Creates and returns a customer group.
public
createCustomerGroup(int $id) : CustomerGroup
Parameters
- $id : int
Return values
CustomerGroup —createCustomerId()
Creates and returns a customer ID.
public
createCustomerId(int $customerId) : CustomerId
Parameters
- $customerId : int
Return values
CustomerId —createCustomerIds()
Creates and returns a collection of customer IDs.
public
createCustomerIds(CustomerId ...$customerIds) : CustomerIds
Parameters
- $customerIds : CustomerId
Return values
CustomerIds —createCustomers()
Creates and returns a collection of customers.
public
createCustomers(Customer ...$customers) : Customers
Parameters
- $customers : Customer
Return values
Customers —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 —mapCustomer()
public
mapCustomer(array<string|int, mixed> $customer) : Customer
Parameters
- $customer : array<string|int, mixed>
Tags
Return values
Customer —mapCustomers()
public
mapCustomers(array<string|int, mixed> ...$customers) : Customers
Parameters
- $customers : array<string|int, mixed>