| Total Complexity | 5 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class DecoderCollection |
||
| 8 | { |
||
| 9 | /** @var BinnValueDecoder[] */ |
||
| 10 | private $decoders = []; |
||
| 11 | |||
| 12 | /** @var array */ |
||
| 13 | private $mapper = []; |
||
| 14 | |||
| 15 | public function getAll(): array |
||
| 16 | { |
||
| 17 | return $this->decoders; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function findByType(int $type): ?BinnValueDecoder |
||
| 27 | } |
||
| 28 | |||
| 29 | public function add(int $type, BinnValueDecoder $decoder): void |
||
| 36 | } |
||
| 37 | } |
||
| 38 |