WithdrawalReadService
in package
implements
WithdrawalReadService
Class WithdrawalService
Interfaces, Classes and Traits
- WithdrawalReadService
- Interface WithdrawalReadService
Table of Contents
- $factory : WithdrawalFactory
- $repository : WithdrawalRepository
- __construct() : mixed
- WithdrawalReadService constructor.
- getWithdrawalById() : Withdrawal
- Returns a specific withdrawal based on the given ID.
- getWithdrawals() : Withdrawals
- Returns all available withdrawals.
Properties
$factory
private
WithdrawalFactory
$factory
$repository
private
WithdrawalRepository
$repository
Methods
__construct()
WithdrawalReadService constructor.
public
__construct(WithdrawalRepository $repository, WithdrawalFactory $factory) : mixed
Parameters
- $repository : WithdrawalRepository
- $factory : WithdrawalFactory
Return values
mixed —getWithdrawalById()
Returns a specific withdrawal based on the given ID.
public
getWithdrawalById(int $id) : Withdrawal
Parameters
- $id : int
Tags
Return values
Withdrawal —getWithdrawals()
Returns all available withdrawals.
public
getWithdrawals() : Withdrawals