| Total Complexity | 2 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class SpatialRectangularFilter implements FilterInterface |
||
| 12 | { |
||
| 13 | protected string $dimension; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var float[] |
||
| 17 | */ |
||
| 18 | protected array $minCoords; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var float[] |
||
| 22 | */ |
||
| 23 | protected array $maxCoords; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * SpatialRectangularFilter constructor. |
||
| 27 | * |
||
| 28 | * @param string $dimension The dimension to filter on |
||
| 29 | * @param float[] $minCoords List of minimum dimension coordinates for coordinates [x, y, z, …] |
||
| 30 | * @param float[] $maxCoords List of maximum dimension coordinates for coordinates [x, y, z, …] |
||
| 31 | */ |
||
| 32 | 1 | public function __construct( |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Return the filter as it can be used in the druid query. |
||
| 44 | * |
||
| 45 | * @return array<string,string|array<string,string|float[]>> |
||
| 46 | */ |
||
| 47 | 1 | public function toArray(): array |
|
| 59 | } |