Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | final class Parser implements ParserInterface |
||
12 | { |
||
13 | |||
14 | private $ll1ParserFactory; |
||
15 | |||
16 | private $referenceFactory; |
||
17 | |||
18 | 1 | public static function create(): ParserInterface |
|
19 | { |
||
20 | 1 | return new self( |
|
21 | 1 | new Ll1ParserFactory, |
|
22 | 1 | new ReferenceFactory |
|
23 | ); |
||
24 | } |
||
25 | |||
26 | 5 | public function __construct( |
|
32 | 5 | } |
|
33 | |||
34 | /** |
||
35 | * @param string $pointer |
||
36 | * @return LocatorInterface |
||
37 | * @throws UniLexException |
||
38 | */ |
||
39 | 4 | public function buildLocator(string $pointer): LocatorInterface |
|
48 | } |
||
49 | } |
||
50 |