Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
68 | public function prependParser(ValueParserInterface $parser) |
||
69 | { |
||
70 | $parsers = $this->parsers; |
||
71 | if (array_key_exists($parser->getName(), $parsers)) { |
||
72 | unset($parsers[$parser->getName()]); |
||
73 | } |
||
74 | |||
75 | $this->parsers = array_merge([$parser->getName() => $parser], $parsers); |
||
76 | |||
77 | return $this; |
||
78 | } |
||
79 | } |