| Total Complexity | 10 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Regex extends Parser |
||
| 15 | { |
||
| 16 | use CaseSensitiveTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string|null |
||
| 20 | */ |
||
| 21 | private $pattern = null; |
||
| 22 | |||
| 23 | 12 | public function __construct(string $pattern) |
|
| 34 | 9 | } |
|
| 35 | |||
| 36 | 9 | protected function parse(&$input, $offset, Context $context) |
|
| 51 | } |
||
| 52 | |||
| 53 | 9 | public function __toString() |
|
| 58 |