1 | <?php |
||
19 | class QueryCompiler implements QueryCompilerInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var \SplPriorityQueue|QueryCompilerInterface[] $compilers |
||
23 | */ |
||
24 | private $compilers = []; |
||
25 | |||
26 | 27 | public function __construct() |
|
33 | |||
34 | /** |
||
35 | * @param QueryCompilerInterface $compiler |
||
36 | * @param int $priority |
||
37 | * |
||
38 | * @return $this |
||
39 | */ |
||
40 | 27 | public function addCompiler(QueryCompilerInterface $compiler, $priority = 0) |
|
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | public function canHandleQuery(QueryBuilder $qb) |
||
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | 24 | public function compile(QueryBuilder $qb) |
|
68 | } |