| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class IsOneOfAssert extends Constraint |
||
| 18 | { |
||
| 19 | private array $allowedValues; |
||
| 20 | |||
| 21 | public function __construct(array $allowedValues) |
||
| 22 | { |
||
| 23 | $this->allowedValues = $allowedValues; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Returns a string representation of the object. |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function toString(): string |
||
| 40 | } |
||
| 41 | |||
| 42 | protected function matches($other): bool |
||
| 45 | } |
||
| 46 | } |
||
| 47 |