Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class EqualsEmpty implements FilterInterface |
||
13 | { |
||
14 | /** |
||
15 | * @param string $field Name of the field to check. |
||
16 | */ |
||
17 | 1 | public function __construct(private string $field) |
|
19 | 1 | } |
|
20 | |||
21 | 1 | public function toCriteriaArray(): array |
|
22 | { |
||
23 | 1 | return [self::getOperator(), $this->field]; |
|
24 | } |
||
25 | |||
26 | 105 | public static function getOperator(): string |
|
29 | } |
||
30 | } |
||
31 |