| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class LessThanHavingFilter implements HavingFilterInterface |
||
| 7 | { |
||
| 8 | protected string $metric; |
||
| 9 | |||
| 10 | protected float $value; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * LessThanHavingFilter constructor. |
||
| 14 | * |
||
| 15 | * @param string $metric |
||
| 16 | * @param float $value |
||
| 17 | */ |
||
| 18 | 4 | public function __construct(string $metric, float $value) |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Return the having filter as it can be used in a druid query. |
||
| 26 | * |
||
| 27 | * @return array<string,string|float> |
||
| 28 | */ |
||
| 29 | 4 | public function toArray(): array |
|
| 37 | } |