PHP Класс Elastica\Query\GeoShapeProvided

Query provided shape definitions
Наследование: extends Elastica\Query\AbstractGeoShape
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_coordinates Coordinates making up geo_shape.
$_shapeType string Type of the geo_shape.

Открытые методы

Метод Описание
__construct ( string $path, array $coordinates, string $shapeType = self::TYPE_ENVELOPE ) Construct geo_shape query.
toArray ( ) : array Converts query to array.

Описание методов

__construct() публичный Метод

Construct geo_shape query.
public __construct ( string $path, array $coordinates, string $shapeType = self::TYPE_ENVELOPE )
$path string The path/field of the shape searched
$coordinates array Points making up the shape
$shapeType string Type of the geo_shape: point, envelope, linestring, polygon, multipoint or multipolygon

toArray() публичный Метод

Converts query to array.
См. также: Elastica\Query\AbstractQuery::toArray()
public toArray ( ) : array
Результат array

Описание свойств

$_coordinates защищенное свойство

Coordinates making up geo_shape.
protected $_coordinates

$_shapeType защищенное свойство

Type of the geo_shape.
protected string $_shapeType
Результат string