| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class Merchant |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Set the transaction repository |
||
| 20 | * |
||
| 21 | * @var TransactionTable |
||
| 22 | */ |
||
| 23 | private $transactionRepository; |
||
| 24 | |||
| 25 | 5 | public function setTransactionRepository(TransactionTable $transactionTable) |
|
| 26 | { |
||
| 27 | 5 | $this->transactionRepository = $transactionTable; |
|
| 28 | |||
| 29 | 5 | return $this; |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get the transaction repository |
||
| 34 | * |
||
| 35 | * @return TransactionTable |
||
| 36 | */ |
||
| 37 | 6 | public function getTransactionRepository() |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the transactions by merchant id |
||
| 44 | * |
||
| 45 | * @param int $merchantId |
||
| 46 | * |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | 5 | public function getTransactionsByMerchantId($merchantId) |
|
| 62 | } |