| Total Complexity | 5 |
| Total Lines | 78 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class Location extends InputMessageContent implements TypeInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected static $requiredParams = ['latitude', 'longitude']; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | * |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | protected static $map = [ |
||
| 36 | 'latitude' => true, |
||
| 37 | 'longitude' => true |
||
| 38 | ]; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Latitude of the location in degrees |
||
| 42 | * |
||
| 43 | * @var float |
||
| 44 | */ |
||
| 45 | protected $latitude; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Longitude of the location in degrees |
||
| 49 | * |
||
| 50 | * @var float |
||
| 51 | */ |
||
| 52 | protected $longitude; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Location constructor. |
||
| 56 | * @param float $latitude |
||
| 57 | * @param float $longitude |
||
| 58 | */ |
||
| 59 | public function __construct($latitude, $longitude) |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return float |
||
| 67 | */ |
||
| 68 | public function getLatitude() |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param float $latitude |
||
| 75 | * |
||
| 76 | * @return void |
||
| 77 | */ |
||
| 78 | public function setLatitude($latitude) |
||
| 79 | { |
||
| 80 | $this->latitude = $latitude; |
||
| 81 | } |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @return float |
||
| 85 | */ |
||
| 86 | public function getLongitude() |
||
| 89 | } |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @param float $longitude |
||
| 93 | * |
||
| 94 | * @return void |
||
| 95 | */ |
||
| 96 | public function setLongitude($longitude) |
||
| 99 | } |
||
| 100 | } |
||
| 101 |