| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class AnyOfSpecification extends Specification |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var Specification[] |
||
| 10 | */ |
||
| 11 | private $specifications; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param Specification[] $specifications |
||
| 15 | */ |
||
| 16 | 2 | public function __construct(Specification ...$specifications) |
|
| 17 | { |
||
| 18 | 2 | $this->specifications = $specifications; |
|
| 19 | 2 | } |
|
| 20 | |||
| 21 | /** |
||
| 22 | * @param mixed $object |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | 2 | public function isSatisfiedBy($object): bool |
|
| 34 | } |
||
| 35 | } |
||
| 36 |