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