Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class Not extends Parser |
||
15 | { |
||
16 | |||
17 | use ArgumentsTrait; |
||
18 | |||
19 | private $parser = null; |
||
20 | |||
21 | public function __construct($parser) |
||
24 | } |
||
25 | |||
26 | protected function parse(&$input, $offset, Context $context) |
||
27 | { |
||
28 | $match = $this->parser->parse($input, $offset, $context); |
||
29 | return $match->match ? $this->failure($input, $offset, $match->length) : $this->success($input, $offset, 0); |
||
30 | } |
||
31 | |||
32 | public function __toString() |
||
35 | } |
||
36 | |||
38 |