1 | <?php |
||
20 | final class OrSpecification extends CompositeSpecification |
||
21 | { |
||
22 | /** |
||
23 | * @var SpecificationInterface |
||
24 | */ |
||
25 | private $one; |
||
26 | |||
27 | /** |
||
28 | * @var SpecificationInterface |
||
29 | */ |
||
30 | private $other; |
||
31 | |||
32 | /** |
||
33 | * Initializes the OrSpecification object |
||
34 | */ |
||
35 | 2 | public function __construct(SpecificationInterface $one, SpecificationInterface $other) |
|
40 | |||
41 | /** |
||
42 | * Checks if the value meets the specification |
||
43 | * |
||
44 | * @param mixed[] $value |
||
45 | * @return bool |
||
46 | */ |
||
47 | 2 | public function isSatisfiedBy(array $value): bool |
|
51 | |||
52 | /** @inheritDoc */ |
||
53 | public function canBeSatisfiedByAnythingBelow(array $value): bool |
||
59 | |||
60 | |||
61 | } |
||
62 |