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