1 | <?php |
||
21 | abstract class CompositeSpecification implements SpecificationInterface |
||
22 | { |
||
23 | /** |
||
24 | * Returns a specification that satisfies the original specification |
||
25 | * as well as the other specification |
||
26 | * @param SpecificationInterface $other |
||
27 | * @return AndSpecification |
||
28 | */ |
||
29 | 1 | public function andSpecification(SpecificationInterface $other): AndSpecification |
|
33 | |||
34 | /** |
||
35 | * Returns a specification that satisfies the original specification |
||
36 | * or the other specification |
||
37 | * @param SpecificationInterface $other |
||
38 | * @return OrSpecification |
||
39 | */ |
||
40 | 1 | public function orSpecification(SpecificationInterface $other): OrSpecification |
|
44 | |||
45 | /** |
||
46 | * Returns a specification that is the inverse of the original specification |
||
47 | * i.e. does not meet the original criteria |
||
48 | */ |
||
49 | 1 | public function notSpecification(): NotSpecification |
|
53 | |||
54 | /** @inheritDoc */ |
||
55 | public function canBeSatisfiedByAnythingBelow(array $value): bool |
||
59 | } |
||
60 |