<?php
/**
* Created by simpson <simpsonwork@gmail.com>
* Date: 2019-03-19
* Time: 15:42
*/
namespace App\Entity\Location;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Embeddable]
final class MapCoordinate
{
#[ORM\Column(name: 'map_latitude', type: 'decimal', precision: 15, scale: 12, nullable: true)]
protected ?float $latitude;
#[ORM\Column(name: 'map_longitude', type: 'decimal', precision: 15, scale: 12, nullable: true)]
protected ?float $longitude;
public function __construct(?float $latitude, ?float $longitude)
{
$this->latitude = $latitude;
$this->longitude = $longitude;
}
public function getLatitude(): ?float
{
return $this->latitude;
}
public function getLongitude(): ?float
{
return $this->longitude;
}
}