Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class TransactionHandler implements TransactionHandlerInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var \Xervice\Redis\Business\Model\Transaction\TransactionCollection |
||
12 | */ |
||
13 | private $collection; |
||
14 | |||
15 | /** |
||
16 | * TransactionHandler constructor. |
||
17 | * |
||
18 | * @param \Xervice\Redis\Business\Model\Transaction\TransactionCollection $collection |
||
19 | */ |
||
20 | 1 | public function __construct(TransactionCollection $collection) |
|
21 | { |
||
22 | 1 | $this->collection = $collection; |
|
23 | 1 | } |
|
24 | |||
25 | /** |
||
26 | * @param \Xervice\Redis\Business\Model\Transaction\TransactionInterface $transaction |
||
27 | */ |
||
28 | 1 | public function addToCollection(TransactionInterface $transaction): void |
|
31 | 1 | } |
|
32 | |||
33 | 1 | public function clearCollection(): void |
|
36 | 1 | } |
|
37 | |||
38 | /** |
||
39 | * @return array |
||
40 | */ |
||
41 | 1 | public function getTransactionArray() : array |
|
52 |