summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/lib/Elastica/Filter/GeoShapePreIndexed.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Filter/GeoShapePreIndexed.php')
-rw-r--r--vendor/ruflin/elastica/lib/Elastica/Filter/GeoShapePreIndexed.php29
1 files changed, 14 insertions, 15 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Filter/GeoShapePreIndexed.php b/vendor/ruflin/elastica/lib/Elastica/Filter/GeoShapePreIndexed.php
index 7e89f8a8..d07cffff 100644
--- a/vendor/ruflin/elastica/lib/Elastica/Filter/GeoShapePreIndexed.php
+++ b/vendor/ruflin/elastica/lib/Elastica/Filter/GeoShapePreIndexed.php
@@ -1,49 +1,47 @@
<?php
-
namespace Elastica\Filter;
/**
- * geo_shape filter for pre-indexed shapes
+ * geo_shape filter for pre-indexed shapes.
*
* 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
*/
class GeoShapePreIndexed extends AbstractGeoShape
{
/**
- * elasticsearch id of the pre-indexed shape
+ * elasticsearch id of the pre-indexed shape.
*
* @var string
*/
protected $_indexedId;
/**
- * elasticsearch type of the pre-indexed shape
+ * elasticsearch type of the pre-indexed shape.
*
* @var string
*/
protected $_indexedType;
/**
- * elasticsearch index of the pre-indexed shape
+ * elasticsearch index of the pre-indexed shape.
*
* @var string
*/
protected $_indexedIndex;
/**
- * elasticsearch path/field name of the pre-indexed shape
+ * elasticsearch path/field name of the pre-indexed shape.
*
* @var string
*/
protected $_indexedPath;
/**
- * Construct geo_shape filter with a pre-indexed shape
+ * Construct geo_shape filter with a pre-indexed shape.
*
* @param string $path The path/field of the shape searched
* @param string $indexedId Id of the pre-indexed shape
@@ -61,9 +59,10 @@ class GeoShapePreIndexed extends AbstractGeoShape
}
/**
- * Converts filter to array
+ * Converts filter to array.
*
* @see \Elastica\Filter\AbstractFilter::toArray()
+ *
* @return array
*/
public function toArray()
@@ -75,11 +74,11 @@ class GeoShapePreIndexed extends AbstractGeoShape
'id' => $this->_indexedId,
'type' => $this->_indexedType,
'index' => $this->_indexedIndex,
- 'path' => $this->_indexedPath
+ 'path' => $this->_indexedPath,
),
- 'relation' => $this->_relation
- )
- )
+ 'relation' => $this->_relation,
+ ),
+ ),
);
}
}