Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
19 | final class Text extends Parser |
||
20 | { |
||
21 | private int $length; |
||
22 | |||
23 | public function __construct(private string $text) |
||
24 | { |
||
25 | $this->length = strlen($this->text); |
||
26 | } |
||
27 | |||
28 | public static function is(string $text): Parser |
||
31 | } |
||
32 | |||
33 | public function parse(string $input): Result |
||
39 | } |
||
40 | } |
||
41 |