Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 55.56% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class GeometryCollection |
||
10 | { |
||
11 | /** @var GeometryObject[] */ |
||
12 | protected array $geometryObjects = []; |
||
13 | |||
14 | /** @var ?GeometryObjectCallback */ |
||
15 | protected ?GeometryObjectCallback $geometryObjectCallback = null; |
||
16 | |||
17 | 1 | public function addGeometryObject(GeometryObject $geometryObject): self |
|
18 | { |
||
19 | 1 | $this->geometryObjects[] = $geometryObject; |
|
20 | |||
21 | 1 | return $this; |
|
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return GeometryObject[] |
||
26 | */ |
||
27 | 1 | public function getGeometryObjects(): array |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return ?GeometryObjectCallback |
||
34 | */ |
||
35 | public function getGeometryObjectCallback(): ?GeometryObjectCallback |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param GeometryObjectCallback $geometryObjectCallback |
||
42 | * @return void |
||
43 | */ |
||
44 | public function setGeometryObjectCallback(GeometryObjectCallback $geometryObjectCallback): void |
||
51 |