Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | final class In implements FilterInterface |
||
10 | { |
||
11 | private string $field; |
||
12 | private array $value; |
||
13 | |||
14 | /** |
||
15 | * @param string $field |
||
16 | * @param bool[]|float[]|int[]|string[] $value |
||
17 | */ |
||
18 | 8 | public function __construct(string $field, array $value) |
|
19 | { |
||
20 | 8 | foreach ($value as $arrayValue) { |
|
21 | 8 | FilterDataValidationHelper::assertIsScalar($arrayValue); |
|
22 | } |
||
23 | |||
24 | 4 | $this->field = $field; |
|
25 | 4 | $this->value = $value; |
|
26 | 4 | } |
|
27 | |||
28 | 4 | public function toArray(): array |
|
31 | } |
||
32 | |||
33 | 84 | public static function getOperator(): string |
|
38 |