1 | <?php |
||
23 | class GroupBuilder extends Builder |
||
24 | { |
||
25 | /** |
||
26 | * @var string[]|Criterion[] |
||
27 | */ |
||
28 | protected const ALLOWED_INNER_TYPES = [ |
||
29 | Where::class => 'applyWhere', |
||
30 | WhereGroup::class => 'applyGroup', |
||
31 | ]; |
||
32 | |||
33 | /** |
||
34 | * @param QueryBuilder $builder |
||
35 | * @param Andx $context |
||
36 | * @param WhereGroup $group |
||
37 | * @return \Generator |
||
38 | */ |
||
39 | protected function applyGroup(QueryBuilder $builder, Andx $context, WhereGroup $group): \Generator |
||
43 | |||
44 | /** |
||
45 | * @param QueryBuilder $builder |
||
46 | * @param CriterionInterface|WhereGroup $group |
||
47 | * @return iterable|null |
||
48 | */ |
||
49 | 2 | public function apply($builder, CriterionInterface $group): ?iterable |
|
59 | |||
60 | /** |
||
61 | * @param WhereGroup $group |
||
62 | * @return iterable|callable[] |
||
63 | */ |
||
64 | 2 | protected function getInnerSelections(WhereGroup $group): iterable |
|
80 | |||
81 | /** |
||
82 | * @param QueryBuilder $builder |
||
83 | * @param Andx $context |
||
84 | * @param Where $where |
||
85 | * @return \Generator |
||
86 | */ |
||
87 | 2 | protected function applyWhere(QueryBuilder $builder, Andx $context, Where $where): \Generator |
|
98 | } |
||
99 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.