| 1 | <?php |
||
| 14 | class Point |
||
| 15 | { |
||
| 16 | const ADDRESS = 1; |
||
| 17 | const POINT = 2; |
||
| 18 | protected $latitude; |
||
| 19 | protected $longitude; |
||
| 20 | protected $address; |
||
| 21 | |||
| 22 | protected $type = 0; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @api |
||
| 26 | */ |
||
| 27 | public function __construct() |
||
| 50 | |||
| 51 | public function __toString(): string |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @api |
||
| 58 | * @return float |
||
| 59 | */ |
||
| 60 | public function getLatitude(): float |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @api |
||
| 67 | * @return float |
||
| 68 | */ |
||
| 69 | public function getLongitude(): float |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @api |
||
| 76 | * @return int |
||
| 77 | */ |
||
| 78 | public function getType(): int |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @api |
||
| 85 | * @return string |
||
| 86 | */ |
||
| 87 | public function getAddress(): string |
||
| 91 | |||
| 92 | public function getKey(): string |
||
| 101 | |||
| 102 | } |
||
| 103 |