| Total Complexity | 8 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class SimpleBillRepository implements BillRepositoryInterface |
||
| 17 | { |
||
| 18 | protected $bills = []; |
||
| 19 | |||
| 20 | public function findByIds(array $ids): array |
||
| 31 | } |
||
| 32 | |||
| 33 | public function save(BillInterface $bill) |
||
| 34 | { |
||
| 35 | $id = $bill->getId(); |
||
| 36 | $this->bills[$id] = $bill; |
||
| 37 | |||
| 38 | return $id; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function findByUniqueness(array $bills): array |
||
| 56 | } |
||
| 57 | } |
||
| 58 |