PHP Class Elastica\Query\GeoShapeProvided

Query provided shape definitions
Inheritance: extends Elastica\Query\AbstractGeoShape
Exibir arquivo Open project: ruflin/elastica Class Usage Examples

Protected Properties

Property Type Description
$_coordinates Coordinates making up geo_shape.
$_shapeType string Type of the geo_shape.

Public Methods

Method Description
__construct ( string $path, array $coordinates, string $shapeType = self::TYPE_ENVELOPE ) Construct geo_shape query.
toArray ( ) : array Converts query to array.

Method Details

__construct() public method

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() public method

Converts query to array.
See also: Elastica\Query\AbstractQuery::toArray()
public toArray ( ) : array
return array

Property Details

$_coordinates protected_oe property

Coordinates making up geo_shape.
protected $_coordinates

$_shapeType protected_oe property

Type of the geo_shape.
protected string $_shapeType
return string