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