| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class Polygon extends GeometryObject |
||
| 7 | { |
||
| 8 | /** @var LineString[] elements representing interior rings (or holes) */ |
||
| 9 | protected array $interiorRings = []; |
||
| 10 | |||
| 11 | 1 | public function __construct(protected LineString $exteriorRing) |
|
| 12 | { |
||
| 13 | 1 | } |
|
| 14 | |||
| 15 | 1 | public function addInteriorRing(LineString $lineString): self |
|
| 20 | } |
||
| 21 | |||
| 22 | 1 | public function getExteriorRing(): LineString |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return LineString[] |
||
| 29 | */ |
||
| 30 | 1 | public function getInteriorRings(): array |
|
| 35 |