summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/lib/Elastica/Filter/AbstractGeoShape.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Filter/AbstractGeoShape.php')
-rw-r--r--vendor/ruflin/elastica/lib/Elastica/Filter/AbstractGeoShape.php22
1 files changed, 12 insertions, 10 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Filter/AbstractGeoShape.php b/vendor/ruflin/elastica/lib/Elastica/Filter/AbstractGeoShape.php
index 3585293b..4f5c0f93 100644
--- a/vendor/ruflin/elastica/lib/Elastica/Filter/AbstractGeoShape.php
+++ b/vendor/ruflin/elastica/lib/Elastica/Filter/AbstractGeoShape.php
@@ -1,32 +1,30 @@
<?php
-
namespace Elastica\Filter;
/**
- * geo_shape filter
+ * geo_shape filter.
*
* Filter pre-indexed shape definitions
*
- * @category Xodoa
- * @package Elastica
* @author Bennie Krijger <benniekrijger@gmail.com>
- * @link http://www.elasticsearch.org/guide/reference/query-dsl/geo-shape-filter/
+ *
+ * @link http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-filter.html
*/
abstract class AbstractGeoShape extends AbstractFilter
{
- const RELATION_INTERSECT = 'intersects';
- const RELATION_DISJOINT = 'disjoint';
- const RELATION_CONTAINS = 'within';
+ const RELATION_INTERSECT = 'intersects';
+ const RELATION_DISJOINT = 'disjoint';
+ const RELATION_CONTAINS = 'within';
/**
- * @var string $_path
+ * @var string
*
* elasticsearch path of the pre-indexed shape
*/
protected $_path;
/**
- * @var string $_relation
+ * @var string
*
* the relation of the 2 shaped: intersects, disjoint, within
*/
@@ -34,10 +32,14 @@ abstract class AbstractGeoShape extends AbstractFilter
/**
* @param string $relation
+ *
+ * @return $this
*/
public function setRelation($relation)
{
$this->_relation = $relation;
+
+ return $this;
}
/**