| Total Complexity | 7 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 8 | final class IsSubset extends Constraint |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var iterable |
||
| 12 | */ |
||
| 13 | private $set; |
||
| 14 | |||
| 15 | 17 | public function __construct(iterable $set) |
|
| 18 | 17 | } |
|
| 19 | |||
| 20 | /** |
||
| 21 | * @param iterable $other |
||
| 22 | * @param string $description |
||
| 23 | * @param bool $returnResult |
||
| 24 | * |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | 14 | public function evaluate($other, string $description = '', bool $returnResult = false): ?bool |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | 1 | public function toString(): string |
|
| 51 | } |
||
| 52 | |||
| 53 | 1 | protected function failureDescription($other): string |
|
| 58 |