Total Complexity | 2 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | class SpatialPolygonFilter implements FilterInterface |
||
12 | { |
||
13 | protected string $dimension; |
||
14 | |||
15 | /** |
||
16 | * @var float[] |
||
17 | */ |
||
18 | protected array $abscissa; |
||
19 | |||
20 | /** |
||
21 | * @var float[] |
||
22 | */ |
||
23 | protected array $ordinate; |
||
24 | |||
25 | /** |
||
26 | * SpatialPolygonFilter constructor. |
||
27 | * |
||
28 | * @param string $dimension The dimension to filter on |
||
29 | * @param float[] $abscissa Horizontal coordinate for corners of the polygon |
||
30 | * @param float[] $ordinate Vertical coordinate for corners of the polygon |
||
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 | } |