Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class Char extends Parser |
||
14 | { |
||
15 | use CaseSensitiveTrait; |
||
16 | |||
17 | private $character; |
||
18 | |||
19 | /** |
||
20 | * Match the specified character (`true`) or everything else (`false`). |
||
21 | * |
||
22 | * @var bool |
||
23 | */ |
||
24 | private $include; |
||
25 | |||
26 | 73 | public function __construct($character, $include = true) |
|
30 | 69 | } |
|
31 | |||
32 | 254 | protected function parse(&$input, $offset, Context $context) |
|
49 | } |
||
50 | |||
51 | 201 | public function __toString() |
|
56 |