Total Complexity | 4 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
15 | final class Ignore extends Parser |
||
16 | { |
||
17 | public function __construct(private Parser $ignored) {} |
||
18 | |||
19 | public static function the(Parser|string $ignore): Parser |
||
20 | { |
||
21 | return new self(Cast::asParser($ignore)); |
||
22 | } |
||
23 | |||
24 | public function parse(string $input): Result |
||
32 | } |
||
33 | } |
||
34 |