| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class Between implements FilterInterface |
||
| 16 | { |
||
| 17 | private bool|DateTimeInterface|float|int|string $minValue; |
||
| 18 | |||
| 19 | private bool|DateTimeInterface|float|int|string $maxValue; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $field Name of the field to compare. |
||
| 23 | * @param bool|DateTimeInterface|float|int|string $minValue Minimal field value. |
||
| 24 | * @param bool|DateTimeInterface|float|int|string $maxValue Maximal field value. |
||
| 25 | */ |
||
| 26 | 16 | public function __construct(private string $field, mixed $minValue, mixed $maxValue) |
|
| 33 | } |
||
| 34 | |||
| 35 | 8 | public function toCriteriaArray(): array |
|
| 38 | } |
||
| 39 | |||
| 40 | 112 | public static function getOperator(): string |
|
| 45 |