1 | <?php |
||
11 | class GeoPolygon extends AbstractQuery |
||
12 | { |
||
13 | /** |
||
14 | * Key. |
||
15 | * |
||
16 | * @var string Key |
||
17 | */ |
||
18 | protected $_key; |
||
19 | |||
20 | /** |
||
21 | * Points making up polygon. |
||
22 | * |
||
23 | * @var array Points making up polygon |
||
24 | */ |
||
25 | protected $_points; |
||
26 | |||
27 | /** |
||
28 | * Construct polygon query. |
||
29 | * |
||
30 | * @param string $key Key |
||
31 | * @param array $points Points making up polygon |
||
32 | */ |
||
33 | public function __construct($key, array $points) |
||
38 | |||
39 | /** |
||
40 | * Converts query to array. |
||
41 | * |
||
42 | * @see \Elastica\Query\AbstractQuery::toArray() |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | public function toArray() |
||
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | * |
||
60 | * @return int |
||
61 | */ |
||
62 | public function count() |
||
66 | |||
67 | } |
||
68 |