Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing visibility method from private to protected #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Engine/DatabaseEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];

Expand Down Expand Up @@ -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);

Expand All @@ -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);

Expand All @@ -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);
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/Engine/GEOSEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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());
Expand Down