| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function getTransactionsByMerchantId($merchantId) |
||
| 50 | { |
||
| 51 | if (!$this->getTransactionRepository() instanceof TransactionTable) { |
||
|
|
|||
| 52 | throw new TransactionRepositoryNotFoundException(); |
||
| 53 | } |
||
| 54 | |||
| 55 | return array_filter( |
||
| 56 | $this->getTransactionRepository()->getTransactions(), |
||
| 57 | function ($e) use ($merchantId) { |
||
| 58 | return (int)$e[0] === (int)$merchantId; |
||
| 59 | } |
||
| 62 | } |