WithdrawalFactory

Class WithdrawalFactory

category

System

package

Withdrawal

subpackage

Factories

Methods

WithdrawalFactory constructor.

__construct(\WithdrawalRepository $repository) 

Arguments

$repository

\WithdrawalRepository

Returns new instances of withdrawal collections.

createCollection() 

Returns new instances of withdrawal entities

createEntity() : \Withdrawal

Response

\Withdrawal

New withdrawal entity.

Returns a new instance of withdrawal order.

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

Arguments

$orderId

\IntType

$customerId

\IntType

$customerGender

\StringType

$customerFirstName

\StringType

$customerLastName

\StringType

$customerStreetAddress

\StringType

$customerPostCode

\IntType

$customerCity

\StringType

$customerCountry

\StringType

$customerEmail

\StringType

$orderDate

\DateTime

$deliveryDate

\DateTime

Response

\WithdrawalOrder

Properties

repository

repository : \WithdrawalRepository
var

Type(s)

\WithdrawalRepository