| 1 | <?php |
||
| 22 | class GeoDistanceQuery implements BuilderInterface |
||
| 23 | { |
||
| 24 | use ParametersTrait; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $field; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private $distance; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var mixed |
||
| 38 | */ |
||
| 39 | private $location; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $field |
||
| 43 | * @param string $distance |
||
| 44 | * @param mixed $location |
||
| 45 | * @param array $parameters |
||
| 46 | */ |
||
| 47 | public function __construct($field, $distance, $location, array $parameters = []) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | */ |
||
| 59 | public function getType() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritdoc} |
||
| 66 | */ |
||
| 67 | public function toArray() |
||
| 77 | } |
||
| 78 |