Skip to content

Commit 3336ebc

Browse files
updated phpdocs for handledistancespatial
1 parent 21770b5 commit 3336ebc

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/Database/Adapter/MySQL.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ public function getSizeOfCollectionOnDisk(string $collection): int
7979
return $size;
8080
}
8181

82+
/**
83+
* Handle distance spatial queries
84+
*
85+
* @param Query $query
86+
* @param array<string, mixed> $binds
87+
* @param string $attribute
88+
* @param string $alias
89+
* @param string $placeholder
90+
* @return string
91+
*/
8292
protected function handleDistanceSpatialQueries(Query $query, array &$binds, string $attribute, string $alias, string $placeholder): string
8393
{
8494
$distanceParams = $query->getValues()[0];

src/Database/Adapter/Postgres.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,16 @@ public function getConnectionId(): string
14521452
return $stmt->fetchColumn();
14531453
}
14541454

1455+
/**
1456+
* Handle distance spatial queries
1457+
*
1458+
* @param Query $query
1459+
* @param array<string, mixed> $binds
1460+
* @param string $attribute
1461+
* @param string $alias
1462+
* @param string $placeholder
1463+
* @return string
1464+
*/
14551465
protected function handleDistanceSpatialQueries(Query $query, array &$binds, string $attribute, string $alias, string $placeholder): string
14561466
{
14571467
$distanceParams = $query->getValues()[0];

0 commit comments

Comments
 (0)