From fcad6e8a2f14e641e3e23f2fad7a99c6eb659812 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 5 Feb 2021 14:18:49 +0200 Subject: [PATCH] Changing visibility method from private to protected --- src/Engine/DatabaseEngine.php | 10 +++++----- src/Engine/GEOSEngine.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Engine/DatabaseEngine.php b/src/Engine/DatabaseEngine.php index b3ce27a6..0c9e49fc 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 3691c79f..d80990a7 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());