diff --git a/src/Engine/DatabaseEngine.php b/src/Engine/DatabaseEngine.php index b3ce27a..0c9e49f 100644 --- a/src/Engine/DatabaseEngine.php +++ b/src/Engine/DatabaseEngine.php @@ -48,7 +48,7 @@ abstract protected function executeQuery(string $query, array $parameters) : arr * * @throws GeometryEngineException */ - private function query(string $function, array $parameters, bool $returnsGeometry) : array + protected function query(string $function, array $parameters, bool $returnsGeometry) : array { $queryParameters = []; @@ -92,7 +92,7 @@ private function query(string $function, array $parameters, bool $returnsGeometr * * @throws GeometryEngineException */ - private function queryBoolean(string $function, ...$parameters) : bool + protected function queryBoolean(string $function, ...$parameters) : bool { [$result] = $this->query($function, $parameters, false); @@ -117,7 +117,7 @@ private function queryBoolean(string $function, ...$parameters) : bool * * @throws GeometryEngineException */ - private function queryFloat(string $function, ...$parameters) : float + protected function queryFloat(string $function, ...$parameters) : float { [$result] = $this->query($function, $parameters, false); @@ -140,7 +140,7 @@ private function queryFloat(string $function, ...$parameters) : float * * @throws GeometryEngineException */ - private function queryGeometry(string $function, ...$parameters) : Geometry + protected function queryGeometry(string $function, ...$parameters) : Geometry { /** @var array{string|null, string|resource|null, string, int|numeric-string} $result */ $result = $this->query($function, $parameters, true); @@ -181,7 +181,7 @@ private function queryGeometry(string $function, ...$parameters) : Geometry * * @throws GeometryEngineException */ - private function getProxyClassName(string $geometryType) : string + protected function getProxyClassName(string $geometryType) : string { $proxyClasses = [ 'CIRCULARSTRING' => Proxy\CircularStringProxy::class, diff --git a/src/Engine/GEOSEngine.php b/src/Engine/GEOSEngine.php index 3691c79..d80990a 100644 --- a/src/Engine/GEOSEngine.php +++ b/src/Engine/GEOSEngine.php @@ -79,7 +79,7 @@ public function __construct() * * @return \GEOSGeometry */ - private function toGEOS(Geometry $geometry) : \GEOSGeometry + protected function toGEOS(Geometry $geometry) : \GEOSGeometry { if ($geometry->isEmpty()) { $geosGeometry = $this->wktReader->read($geometry->asText()); @@ -100,7 +100,7 @@ private function toGEOS(Geometry $geometry) : \GEOSGeometry * * @return Geometry */ - private function fromGEOS(\GEOSGeometry $geometry) : Geometry + protected function fromGEOS(\GEOSGeometry $geometry) : Geometry { if ($geometry->isEmpty()) { return Geometry::fromText($this->wktWriter->write($geometry), $geometry->getSRID());