| Total Complexity | 6 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class DepositsWithdrawals extends AbstractResponse |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var Deposit[] |
||
| 25 | */ |
||
| 26 | public $deposits = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var Withdrawal[] |
||
| 30 | */ |
||
| 31 | public $withdrawals = []; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @internal |
||
| 35 | * @return Deposit[] |
||
| 36 | */ |
||
| 37 | public function getDeposits(): array |
||
| 38 | { |
||
| 39 | return $this->deposits; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @internal |
||
| 44 | * @param Deposit $deposit |
||
| 45 | */ |
||
| 46 | public function addDeposit(Deposit $deposit): void |
||
| 47 | { |
||
| 48 | $this->deposits[] = $deposit; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @internal |
||
| 53 | * @param Deposit[] $deposits |
||
| 54 | */ |
||
| 55 | public function setDeposits(array $deposits): void |
||
| 56 | { |
||
| 57 | $this->deposits = $deposits; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @internal |
||
| 62 | * @return Withdrawal[] |
||
| 63 | */ |
||
| 64 | public function getWithdrawals(): array |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @internal |
||
| 71 | * @param Withdrawal $withdrawal |
||
| 72 | */ |
||
| 73 | public function addWithdrawal(Withdrawal $withdrawal): void |
||
| 74 | { |
||
| 75 | $this->withdrawals[] = $withdrawal; |
||
| 76 | } |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @internal |
||
| 80 | * @param Withdrawal[] $withdrawals |
||
| 81 | */ |
||
| 82 | public function setWithdrawals(array $withdrawals): void |
||
| 85 | } |
||
| 86 | |||
| 87 | |||
| 88 | } |