| Total Complexity | 7 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 9 | final class ContainsSet extends Constraint |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var iterable |
||
| 13 | */ |
||
| 14 | private $set; |
||
| 15 | |||
| 16 | 17 | public function __construct(iterable $subset) |
|
| 19 | 17 | } |
|
| 20 | |||
| 21 | /** |
||
| 22 | * @param iterable $other |
||
| 23 | * @param string $description |
||
| 24 | * @param bool $returnResult |
||
| 25 | * |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | 14 | public function evaluate($other, string $description = '', bool $returnResult = false): ?bool |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | 1 | public function toString(): string |
|
| 52 | { |
||
| 53 | 1 | return ' contains the subset ' . $this->exporter()->export($this->set); |
|
| 54 | } |
||
| 55 | |||
| 56 | 1 | protected function failureDescription($other): string |
|
| 59 | } |
||
| 60 | } |
||
| 61 |