Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class Between implements FilterInterface |
||
15 | { |
||
16 | /** |
||
17 | * @param string $field Name of the field to compare. |
||
18 | * @param bool|DateTimeInterface|float|int|string $minValue Minimal field value. |
||
19 | * @param bool|DateTimeInterface|float|int|string $maxValue Maximal field value. |
||
20 | */ |
||
21 | 6 | public function __construct( |
|
26 | 6 | } |
|
27 | |||
28 | 11 | public function getField(): string |
|
29 | { |
||
30 | 11 | return $this->field; |
|
31 | } |
||
32 | |||
33 | 11 | public function getMinValue(): float|DateTimeInterface|bool|int|string |
|
34 | { |
||
35 | 11 | return $this->minValue; |
|
36 | } |
||
37 | |||
38 | 11 | public function getMaxValue(): float|DateTimeInterface|bool|int|string |
|
41 | } |
||
42 | } |
||
43 |