WithdrawalFactory
in package
Class WithdrawalFactory
Tags
Table of Contents
- $repository : WithdrawalRepository
- __construct() : mixed
- WithdrawalFactory constructor.
- createCollection() : mixed
- Returns new instances of withdrawal collections.
- createEntity() : Withdrawal
- Returns new instances of withdrawal entities
- createOrder() : WithdrawalOrder
- Returns a new instance of withdrawal order.
Properties
$repository
private
WithdrawalRepository
$repository
Methods
__construct()
WithdrawalFactory constructor.
public
__construct(WithdrawalRepository $repository) : mixed
Parameters
- $repository : WithdrawalRepository
Return values
mixed —createCollection()
Returns new instances of withdrawal collections.
public
createCollection() : mixed
Return values
mixed —createEntity()
Returns new instances of withdrawal entities
public
createEntity() : Withdrawal
Return values
Withdrawal —New withdrawal entity.
createOrder()
Returns a new instance of withdrawal order.
public
createOrder(IntType $orderId, IntType $customerId, StringType $customerGender, StringType $customerFirstName, StringType $customerLastName, StringType $customerStreetAddress, IntType $customerPostCode, StringType $customerCity, StringType $customerCountry, StringType $customerEmail, DateTime $orderDate, DateTime $deliveryDate) : WithdrawalOrder
Parameters
- $orderId : IntType
- $customerId : IntType
- $customerGender : StringType
- $customerFirstName : StringType
- $customerLastName : StringType
- $customerStreetAddress : StringType
- $customerPostCode : IntType
- $customerCity : StringType
- $customerCountry : StringType
- $customerEmail : StringType
- $orderDate : DateTime
- $deliveryDate : DateTime