Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
28 | class FormatterCollection |
||
29 | { |
||
30 | use CollectionTrait; |
||
31 | |||
32 | protected function describeItem(): string |
||
35 | } |
||
36 | |||
37 | public function addFormatter(FormatterInterface $formatter): void |
||
38 | { |
||
39 | $this->addItem($formatter->getName(), $formatter); |
||
40 | } |
||
41 | |||
42 | public function getFormatter(string $name): FormatterInterface |
||
45 | } |
||
46 | } |
||
47 |