WithdrawalFactory
in package
Class WithdrawalFactory
Table of Contents
- createCustomerAddress() : CustomerAddress
- Creates and returns a customer address.
- createCustomerDetails() : CustomerDetails
- Creates and returns customer details.
- createOrderDetails() : OrderDetails
- Creates and returns order details.
- createOrderId() : OrderId
- Creates and returns an order ID.
- createWithdrawal() : Withdrawal
- Creates and returns a withdrawal.
- createWithdrawalId() : WithdrawalId
- Creates and returns an withdrawal ID.
- createWithdrawalIds() : WithdrawalIds
- Creates and returns a collection of withdrawal IDs.
- createWithdrawals() : Withdrawals
- Creates and returns a collection of withdrawals.
Methods
createCustomerAddress()
Creates and returns a customer address.
public
createCustomerAddress([string $street = '' ][, string $postcode = '' ][, string $city = '' ][, string $country = '' ]) : CustomerAddress
Parameters
- $street : string = ''
- $postcode : string = ''
- $city : string = ''
- $country : string = ''
Return values
CustomerAddress —createCustomerDetails()
Creates and returns customer details.
public
createCustomerDetails(string $email, CustomerAddress $address[, int|null $id = null ][, string|null $gender = null ][, string|null $firstname = '' ][, string|null $lastname = '' ]) : CustomerDetails
Parameters
- $email : string
- $address : CustomerAddress
- $id : int|null = null
- $gender : string|null = null
- $firstname : string|null = ''
- $lastname : string|null = ''
Return values
CustomerDetails —createOrderDetails()
Creates and returns order details.
public
createOrderDetails([int|null $id = null ][, string|null $creationDate = null ][, string|null $deliveryDate = null ]) : OrderDetails
Parameters
- $id : int|null = null
- $creationDate : string|null = null
- $deliveryDate : string|null = null
Return values
OrderDetails —createOrderId()
Creates and returns an order ID.
public
createOrderId(int $id) : OrderId
Parameters
- $id : int
Return values
OrderId —createWithdrawal()
Creates and returns a withdrawal.
public
createWithdrawal(int $id, OrderDetails $order, CustomerDetails $customer, string|null $date, string $content, bool $createdByAdmin[, string|null $createdOn = null ]) : Withdrawal
Parameters
- $id : int
- $order : OrderDetails
- $customer : CustomerDetails
- $date : string|null
- $content : string
- $createdByAdmin : bool
- $createdOn : string|null = null
Return values
Withdrawal —createWithdrawalId()
Creates and returns an withdrawal ID.
public
createWithdrawalId(int $id) : WithdrawalId
Parameters
- $id : int
Return values
WithdrawalId —createWithdrawalIds()
Creates and returns a collection of withdrawal IDs.
public
createWithdrawalIds(WithdrawalId ...$ids) : WithdrawalIds
Parameters
- $ids : WithdrawalId
Return values
WithdrawalIds —createWithdrawals()
Creates and returns a collection of withdrawals.
public
createWithdrawals(Withdrawal ...$withdrawals) : Withdrawals
Parameters
- $withdrawals : Withdrawal