summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/lib/Elastica/Filter/GeoBoundingBox.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Filter/GeoBoundingBox.php')
-rw-r--r--vendor/ruflin/elastica/lib/Elastica/Filter/GeoBoundingBox.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Filter/GeoBoundingBox.php b/vendor/ruflin/elastica/lib/Elastica/Filter/GeoBoundingBox.php
index 1462e9af..f67febe3 100644
--- a/vendor/ruflin/elastica/lib/Elastica/Filter/GeoBoundingBox.php
+++ b/vendor/ruflin/elastica/lib/Elastica/Filter/GeoBoundingBox.php
@@ -1,21 +1,19 @@
<?php
-
namespace Elastica\Filter;
use Elastica\Exception\InvalidException;
/**
- * Geo bounding box filter
+ * Geo bounding box filter.
*
- * @category Xodoa
- * @package Elastica
* @author Fabian Vogler <fabian@equivalence.ch>
- * @link http://www.elasticsearch.org/guide/reference/query-dsl/geo-bounding-box-filter.html
+ *
+ * @link http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-bounding-box-filter.html
*/
class GeoBoundingBox extends AbstractFilter
{
/**
- * Construct BoundingBoxFilter
+ * Construct BoundingBoxFilter.
*
* @param string $key Key
* @param array $coordinates Array with top left coordinate as first and bottom right coordinate as second element
@@ -26,12 +24,14 @@ class GeoBoundingBox extends AbstractFilter
}
/**
- * Add coordinates
+ * Add coordinates.
+ *
+ * @param string $key Key
+ * @param array $coordinates Array with top left coordinate as first and bottom right coordinate as second element
+ *
+ * @throws \Elastica\Exception\InvalidException If $coordinates doesn't have two elements
*
- * @param string $key Key
- * @param array $coordinates Array with top left coordinate as first and bottom right coordinate as second element
- * @throws \Elastica\Exception\InvalidException If $coordinates doesn't have two elements
- * @return \Elastica\Filter\GeoBoundingBox Current object
+ * @return $this
*/
public function addCoordinates($key, array $coordinates)
{
@@ -41,7 +41,7 @@ class GeoBoundingBox extends AbstractFilter
$this->setParam($key, array(
'top_left' => $coordinates[0],
- 'bottom_right' => $coordinates[1]
+ 'bottom_right' => $coordinates[1],
));
return $this;