Skip to content

Commit eab3524

Browse files
committed
Re-generate proxies
1 parent 723c55d commit eab3524

15 files changed

+181
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
🐛 **Bug fixes**
66

77
- The error mode of the PDO connection in `PDOEngine` could be left modified when an exception occurs
8+
- Uninitialized proxies would be broken when calling `with*()` methods
89

910
## [0.11.4](https://github.com/brick/geo/releases/tag/0.11.4) - 2025-03-03
1011

src/Proxy/CircularStringProxy.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,15 @@ public function getIterator(): \ArrayIterator
217217
return $this->proxyGeometry->getIterator();
218218
}
219219

220+
public function withAddedPoints(\Brick\Geo\Point ...$points): \Brick\Geo\CircularString
221+
{
222+
if ($this->proxyGeometry === null) {
223+
$this->load();
224+
}
225+
226+
return $this->proxyGeometry->withAddedPoints($points);
227+
}
228+
220229
public function coordinateDimension(): int
221230
{
222231
if ($this->proxyGeometry === null) {

src/Proxy/CompoundCurveProxy.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,15 @@ public function getIterator(): \ArrayIterator
217217
return $this->proxyGeometry->getIterator();
218218
}
219219

220+
public function withAddedCurves(\Brick\Geo\Curve ...$curves): \Brick\Geo\CompoundCurve
221+
{
222+
if ($this->proxyGeometry === null) {
223+
$this->load();
224+
}
225+
226+
return $this->proxyGeometry->withAddedCurves($curves);
227+
}
228+
220229
public function coordinateDimension(): int
221230
{
222231
if ($this->proxyGeometry === null) {

src/Proxy/CurvePolygonProxy.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,33 @@ public function getIterator(): \ArrayIterator
208208
return $this->proxyGeometry->getIterator();
209209
}
210210

211+
public function withExteriorRing(\Brick\Geo\Curve $exteriorRing): \Brick\Geo\CurvePolygon
212+
{
213+
if ($this->proxyGeometry === null) {
214+
$this->load();
215+
}
216+
217+
return $this->proxyGeometry->withExteriorRing($exteriorRing);
218+
}
219+
220+
public function withInteriorRings(\Brick\Geo\Curve ...$interiorRings): \Brick\Geo\CurvePolygon
221+
{
222+
if ($this->proxyGeometry === null) {
223+
$this->load();
224+
}
225+
226+
return $this->proxyGeometry->withInteriorRings($interiorRings);
227+
}
228+
229+
public function withAddedInteriorRings(\Brick\Geo\Curve ...$interiorRings): \Brick\Geo\CurvePolygon
230+
{
231+
if ($this->proxyGeometry === null) {
232+
$this->load();
233+
}
234+
235+
return $this->proxyGeometry->withAddedInteriorRings($interiorRings);
236+
}
237+
211238
public function coordinateDimension(): int
212239
{
213240
if ($this->proxyGeometry === null) {

src/Proxy/GeometryCollectionProxy.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@ public function getIterator(): \ArrayIterator
208208
return $this->proxyGeometry->getIterator();
209209
}
210210

211+
public function withAddedGeometries(\Brick\Geo\Geometry ...$geometries): \Brick\Geo\GeometryCollection
212+
{
213+
if ($this->proxyGeometry === null) {
214+
$this->load();
215+
}
216+
217+
return $this->proxyGeometry->withAddedGeometries($geometries);
218+
}
219+
211220
public function coordinateDimension(): int
212221
{
213222
if ($this->proxyGeometry === null) {

src/Proxy/LineStringProxy.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,15 @@ public function getIterator(): \ArrayIterator
217217
return $this->proxyGeometry->getIterator();
218218
}
219219

220+
public function withAddedPoints(\Brick\Geo\Point ...$points): \Brick\Geo\LineString
221+
{
222+
if ($this->proxyGeometry === null) {
223+
$this->load();
224+
}
225+
226+
return $this->proxyGeometry->withAddedPoints($points);
227+
}
228+
220229
public function coordinateDimension(): int
221230
{
222231
if ($this->proxyGeometry === null) {

src/Proxy/MultiCurveProxy.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@ public function getIterator(): \ArrayIterator
208208
return $this->proxyGeometry->getIterator();
209209
}
210210

211+
public function withAddedGeometries(\Brick\Geo\Geometry ...$geometries): \Brick\Geo\GeometryCollection
212+
{
213+
if ($this->proxyGeometry === null) {
214+
$this->load();
215+
}
216+
217+
return $this->proxyGeometry->withAddedGeometries($geometries);
218+
}
219+
211220
public function coordinateDimension(): int
212221
{
213222
if ($this->proxyGeometry === null) {

src/Proxy/MultiLineStringProxy.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@ public function getIterator(): \ArrayIterator
208208
return $this->proxyGeometry->getIterator();
209209
}
210210

211+
public function withAddedGeometries(\Brick\Geo\Geometry ...$geometries): \Brick\Geo\GeometryCollection
212+
{
213+
if ($this->proxyGeometry === null) {
214+
$this->load();
215+
}
216+
217+
return $this->proxyGeometry->withAddedGeometries($geometries);
218+
}
219+
211220
public function coordinateDimension(): int
212221
{
213222
if ($this->proxyGeometry === null) {

src/Proxy/MultiPointProxy.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@ public function getIterator(): \ArrayIterator
208208
return $this->proxyGeometry->getIterator();
209209
}
210210

211+
public function withAddedGeometries(\Brick\Geo\Geometry ...$geometries): \Brick\Geo\GeometryCollection
212+
{
213+
if ($this->proxyGeometry === null) {
214+
$this->load();
215+
}
216+
217+
return $this->proxyGeometry->withAddedGeometries($geometries);
218+
}
219+
211220
public function coordinateDimension(): int
212221
{
213222
if ($this->proxyGeometry === null) {

src/Proxy/MultiPolygonProxy.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@ public function getIterator(): \ArrayIterator
208208
return $this->proxyGeometry->getIterator();
209209
}
210210

211+
public function withAddedGeometries(\Brick\Geo\Geometry ...$geometries): \Brick\Geo\GeometryCollection
212+
{
213+
if ($this->proxyGeometry === null) {
214+
$this->load();
215+
}
216+
217+
return $this->proxyGeometry->withAddedGeometries($geometries);
218+
}
219+
211220
public function coordinateDimension(): int
212221
{
213222
if ($this->proxyGeometry === null) {

0 commit comments

Comments
 (0)