Class WithdrawalFactory

Class WithdrawalFactory

Methods summary

public __construct( WithdrawalRepository $repository )

WithdrawalFactory constructor.

public createEntity( void ) : Withdrawal

Returns new instances of withdrawal entities

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

Returns a new instance of withdrawal order.

public createCollection( void )

Returns new instances of withdrawal collections.