Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 85.71% |
Changes | 0 |
1 | <?php |
||
8 | class FieldParserRegistry |
||
9 | { |
||
10 | /** |
||
11 | * @var FieldParserInterface[] |
||
12 | */ |
||
13 | private $parsers; |
||
14 | |||
15 | /** |
||
16 | * @param FieldParserInterface $parser |
||
17 | */ |
||
18 | 1 | public function addParser(FieldParserInterface $parser) |
|
21 | 1 | } |
|
22 | |||
23 | /** |
||
24 | * @param string $name |
||
25 | * @return FieldParserInterface |
||
26 | * @throws RuntimeException |
||
27 | */ |
||
28 | 1 | public function getParser($name) |
|
37 |