Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Lexer extends AbstractLexer implements ParserInterface |
||
10 | { |
||
11 | public function parse(string $type): array |
||
12 | { |
||
13 | try { |
||
14 | return $this->getType($type); |
||
15 | } catch (Exception $e) { |
||
16 | throw new SyntaxError($e->getMessage(), 0, $e); |
||
17 | } |
||
18 | } |
||
19 | |||
20 | protected function getCatchablePatterns(): array |
||
29 | ]; |
||
30 | } |
||
31 | |||
32 | protected function getNonCatchablePatterns(): array |
||
35 | // TODO: Implement getNonCatchablePatterns() method. |
||
36 | ]; |
||
37 | } |
||
38 | |||
39 | protected function getType(&$value) |
||
44 |