Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | abstract class Compare implements FilterInterface |
||
16 | { |
||
17 | private bool|DateTimeInterface|float|int|string $value; |
||
18 | |||
19 | /** |
||
20 | * @param string $field Name of the field to compare. |
||
21 | * @param bool|DateTimeInterface|float|int|string $value Value to compare to. |
||
22 | */ |
||
23 | 88 | public function __construct(private string $field, mixed $value) |
|
27 | } |
||
28 | |||
29 | 52 | public function toCriteriaArray(): array |
|
34 |