| 1 | <?php |
||
| 20 | final class AndSpecification 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 AndSpecification object |
||
| 34 | * @param SpecificationInterface $one |
||
| 35 | 2 | * @param SpecificationInterface $other |
|
| 36 | */ |
||
| 37 | 2 | public function __construct(SpecificationInterface $one, SpecificationInterface $other) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * Checks if the value meets the specification |
||
| 45 | * |
||
| 46 | 2 | * @param mixed[] $value |
|
| 47 | * @return bool |
||
| 48 | 2 | */ |
|
| 49 | public function isSatisfiedBy(array $value): bool |
||
| 53 | |||
| 54 | /** @inheritDoc */ |
||
| 55 | public function canBeSatisfiedByAnythingBelow(array $value): bool |
||
| 61 | |||
| 62 | |||
| 63 | } |
||
| 64 |