WithdrawalWriteService
in package
implements
WithdrawalWriteService
Class WithdrawalService
Interfaces, Classes and Traits
- WithdrawalWriteService
- Interface WithdrawalWriteService
Table of Contents
- $factory : WithdrawalFactory
- $repository : WithdrawalRepository
- __construct() : mixed
- WithdrawalWriteService constructor.
- createMultipleWithdrawals() : WithdrawalIds
- Creates multiple withdrawals and returns their IDs.
- createWithdrawal() : WithdrawalId
- Creates a new withdrawals and returns its ID.
- deleteWithdrawals() : void
- Deletes withdrawals based on the given IDs.
- storeWithdrawals() : void
- Stores multiple withdrawals.
Properties
$factory
private
WithdrawalFactory
$factory
$repository
private
WithdrawalRepository
$repository
Methods
__construct()
WithdrawalWriteService constructor.
public
__construct(WithdrawalRepository $repository, WithdrawalFactory $factory) : mixed
Parameters
- $repository : WithdrawalRepository
- $factory : WithdrawalFactory
Return values
mixed —createMultipleWithdrawals()
Creates multiple withdrawals and returns their IDs.
public
createMultipleWithdrawals(array<string|int, mixed> ...$creationArguments) : WithdrawalIds
Parameters
- $creationArguments : array<string|int, mixed>
-
Provided array must contain arguments like they are used in the single creation method. Provide multiple arrays for multi creation.
Tags
Return values
WithdrawalIds —createWithdrawal()
Creates a new withdrawals and returns its ID.
public
createWithdrawal(OrderDetails $order, CustomerDetails $customer[, string $date = '' ][, string $content = '' ][, bool $createdByAdmin = true ]) : WithdrawalId
Parameters
- $order : OrderDetails
- $customer : CustomerDetails
- $date : string = ''
- $content : string = ''
- $createdByAdmin : bool = true
Tags
Return values
WithdrawalId —deleteWithdrawals()
Deletes withdrawals based on the given IDs.
public
deleteWithdrawals(int ...$ids) : void
Parameters
- $ids : int
Tags
Return values
void —storeWithdrawals()
Stores multiple withdrawals.
public
storeWithdrawals(Withdrawal ...$withdrawals) : void
Parameters
- $withdrawals : Withdrawal