| 1 | <?php |
||
| 22 | class Location extends BaseType implements TypeInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | * |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | static protected $requiredParams = ['latitude', 'longitude']; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | * |
||
| 34 | * @var array |
||
| 35 | */ |
||
| 36 | static protected $map = [ |
||
| 37 | 'latitude' => true, |
||
| 38 | 'longitude' => true |
||
| 39 | ]; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Latitude of the location in degrees |
||
| 43 | * |
||
| 44 | * @var float |
||
| 45 | */ |
||
| 46 | protected $latitude; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Longitude of the location in degrees |
||
| 50 | * |
||
| 51 | * @var float |
||
| 52 | */ |
||
| 53 | protected $longitude; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return float |
||
| 57 | */ |
||
| 58 | public function getLatitude() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param float $latitude |
||
| 65 | */ |
||
| 66 | public function setLatitude($latitude) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return float |
||
| 73 | */ |
||
| 74 | public function getLongitude() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param float $longitude |
||
| 81 | */ |
||
| 82 | public function setLongitude($longitude) |
||
| 86 | } |
||
| 87 |