Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
14 | abstract class Compare implements FilterInterface |
||
15 | { |
||
16 | /** |
||
17 | * @param string $field Name of the field to compare. |
||
18 | * @param bool|DateTimeInterface|float|int|string $value Value to compare to. |
||
19 | */ |
||
20 | 97 | public function __construct( |
|
24 | 97 | } |
|
25 | |||
26 | 109 | public function getValue(): float|DateTimeInterface|bool|int|string |
|
27 | { |
||
28 | 109 | return $this->value; |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param bool|DateTimeInterface|float|int|string $value Value to compare to. |
||
33 | */ |
||
34 | 2 | final public function withValue(bool|DateTimeInterface|float|int|string $value): static |
|
39 | } |
||
40 | } |
||
41 |