Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | abstract class DBALMatchableObjectRepository extends DBALObjectRepository implements Matchable |
||
16 | { |
||
17 | 34 | final public function match($specification): Result |
|
20 | } |
||
21 | |||
22 | 3 | final public function matchOne($specification) |
|
35 | } |
||
36 | |||
37 | 37 | final protected function qbForSpecification($specification): QueryBuilder |
|
38 | { |
||
39 | 37 | $qb = $this->qb(); |
|
40 | 37 | $result = $this->specificationNormalizer()->normalize($specification, new DBALContext($qb)); |
|
41 | |||
42 | 37 | if ($result) { |
|
43 | 33 | $qb->where($result); |
|
44 | } |
||
45 | |||
46 | 37 | return $qb; |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * Override to provide your own SpecificationNormalizer implementation. |
||
51 | */ |
||
52 | 37 | protected function specificationNormalizer(): Normalizer |
|
55 | } |
||
56 | } |
||
57 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.