1 | <?php |
||
21 | final class AndSpecification extends CompositeSpecification |
||
22 | { |
||
23 | /** @var SpecificationInterface */ |
||
24 | private $one; |
||
25 | |||
26 | /** @var SpecificationInterface */ |
||
27 | private $other; |
||
28 | |||
29 | /** |
||
30 | * Initializes the AndSpecification object |
||
31 | */ |
||
32 | public function __construct(SpecificationInterface $one, SpecificationInterface $other) |
||
37 | 2 | ||
38 | 2 | /** |
|
39 | 2 | * {@inheritDoc} |
|
40 | */ |
||
41 | public function isSatisfiedBy(array $value) : bool |
||
45 | |||
46 | 2 | /** {@inheritDoc} */ |
|
47 | public function canBeSatisfiedBySomethingBelow(array $value) : bool |
||
52 | |||
53 | /** {@inheritDoc} */ |
||
54 | public function willBeSatisfiedByEverythingBelow(array $value) : bool |
||
59 | } |
||
60 |