| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class QueryFactory implements QueryFactoryInterface |
||
| 12 | { |
||
| 13 | |||
| 14 | private $parser; |
||
| 15 | |||
| 16 | private $astTranslator; |
||
| 17 | |||
| 18 | 1 | public static function create(): QueryFactoryInterface |
|
| 19 | { |
||
| 20 | 1 | return new QueryFactory( |
|
| 21 | 1 | new Parser(new Ll1ParserFactory()), |
|
| 22 | 1 | new AstTranslator(), |
|
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | 5 | public function __construct(ParserInterface $parser, AstTranslatorInterface $astTranslator) |
|
| 30 | 5 | } |
|
| 31 | |||
| 32 | 4 | public function createQuery(string $path): QueryInterface |
|
| 35 | } |
||
| 36 | } |
||
| 37 |