| 1 | <?php |
| 2 | namespace App\Entity; |
| 3 | |
| 4 | use Doctrine\ORM\Mapping as ORM; |
| 5 | |
| 6 | /** |
| 7 | * @ORM\Entity() |
| 8 | * @ORM\Table(name="Localisation") |
| 9 | */ |
| 10 | class Localisation |
| 11 | { |
| 12 | /** |
| 13 | * @ORM\Id |
| 14 | * @ORM\Column(type="bigint") |
| 15 | * @ORM\GeneratedValue |
| 16 | */ |
| 17 | protected $id; |
| 18 | |
| 19 | /** |
| 20 | * @ORM\ManyToOne(targetEntity="App\Entity\Person", cascade={"all"}) |
| 21 | */ |
| 22 | protected $person; |
| 23 | |
| 24 | /** |
| 25 | * @ORM\Column(type="datetime") |
| 26 | */ |
| 27 | protected $timestamp; |
| 28 | |
| 29 | /** |
| 30 | * @ORM\Column(type="float") |
| 31 | */ |
| 32 | protected $latitude; |
| 33 | |
| 34 | /** |
| 35 | * @ORM\Column(type="float") |
| 36 | */ |
| 37 | protected $longitude; |
| 38 | |
| 39 | public function getId() |
| 40 | { |
| 41 | return $this->id; |
| 42 | } |
| 43 | |
| 44 | public function getPerson() |
| 45 | { |
| 46 | return $this->person; |
| 47 | } |
| 48 | |
| 49 | public function getTimestamp() |
| 50 | { |
| 51 | return $this->timestamp; |
| 52 | } |
| 53 | |
| 54 | public function getLatitude() |
| 55 | { |
| 56 | return $this->latitude; |
| 57 | } |
| 58 | |
| 59 | public function getLongitude() |
| 60 | { |
| 61 | return $this->longitude; |
| 62 | } |
| 63 | |
| 64 | public function setId($id) |
| 65 | { |
| 66 | $this->id = $id; |
| 67 | return $this; |
| 68 | } |
| 69 | |
| 70 | public function setTimestamp($timestamp) |
| 71 | { |
| 72 | $this->timestamp = $timestamp; |
| 73 | return $this; |
| 74 | } |
| 75 | |
| 76 | public function setLatitude($latitude) |
| 77 | { |
| 78 | $this->latitude = $latitude; |
| 79 | return $this; |
| 80 | } |
| 81 | |
| 82 | public function setLongitude($longitude) |
| 83 | { |
| 84 | $this->longitude = $longitude; |
| 85 | return $this; |
| 86 | } |
| 87 | } |