turitezo / models /Locate.php
chartManD's picture
Add Models from local project
6ed81b9
raw
history blame contribute delete
412 Bytes
<?php
class Locate
{
private $latitud;
private $altitud;
private $longitud;
public function __construct($lat, $alt, $long)
{
$this->latitud = $lat;
$this->altitud = $alt;
$this->longitud = $long;
}
public function getCoordinates() : array
{
return ["latitud" => $this->latitud, "altitud" => $this->altitud, "longitud" => $this->longitud];
}
}