1 | <?php |
||
14 | class FieldNote |
||
15 | { |
||
16 | const LOG_TYPE_FOUND = GeocacheLog::LOG_TYPE_FOUND; |
||
17 | const LOG_TYPE_NOT_FOUND = GeocacheLog::LOG_TYPE_NOT_FOUND; |
||
18 | const LOG_TYPE_NOTE = GeocacheLog::LOG_TYPE_NOTE; |
||
19 | const LOG_TYPE_NEEDS_MAINTENANCE = 1000; |
||
20 | |||
21 | /** |
||
22 | * @var int |
||
23 | * |
||
24 | * @ORM\Column(name="id", type="integer") |
||
25 | * @ORM\Id |
||
26 | * @ORM\GeneratedValue(strategy="AUTO") |
||
27 | */ |
||
28 | private $id; |
||
29 | |||
30 | /** |
||
31 | * @var \AppBundle\Entity\User $user |
||
32 | * |
||
33 | * @ORM\ManyToOne(targetEntity="\AppBundle\Entity\User") |
||
34 | * @ORM\JoinColumn(name="user_id", referencedColumnName="user_id", onDelete="CASCADE") |
||
35 | */ |
||
36 | private $user; |
||
37 | |||
38 | /** |
||
39 | * @var int |
||
40 | * |
||
41 | * @ORM\Column(name="type", type="smallint") |
||
42 | */ |
||
43 | private $type; |
||
44 | |||
45 | /** |
||
46 | * @var \DateTime |
||
47 | * |
||
48 | * @ORM\Column(name="date", type="datetime") |
||
49 | */ |
||
50 | private $date; |
||
51 | |||
52 | /** |
||
53 | * @var string |
||
54 | * |
||
55 | * @ORM\Column(name="text", type="string", length=255, nullable=true) |
||
56 | */ |
||
57 | private $text; |
||
58 | |||
59 | /** |
||
60 | * @var \AppBundle\Entity\Geocache |
||
61 | * |
||
62 | * @ORM\ManyToOne(targetEntity="\AppBundle\Entity\Geocache") |
||
63 | * @ORM\JoinColumn(name="geocache_id", referencedColumnName="cache_id", onDelete="CASCADE") |
||
64 | */ |
||
65 | private $geocache; |
||
66 | |||
67 | /** |
||
68 | * Get id |
||
69 | * |
||
70 | * @return int |
||
71 | */ |
||
72 | public function getId() |
||
76 | |||
77 | /** |
||
78 | * Set type |
||
79 | * |
||
80 | * @param int $type |
||
81 | * |
||
82 | * @return \AppBundle\Entity\FieldNote |
||
83 | */ |
||
84 | public function setType($type) |
||
90 | |||
91 | /** |
||
92 | * Get type |
||
93 | * |
||
94 | * @return int |
||
95 | */ |
||
96 | public function getType() |
||
100 | |||
101 | /** |
||
102 | * Set date |
||
103 | * |
||
104 | * @param \DateTime $date |
||
105 | * |
||
106 | * @return \AppBundle\Entity\FieldNote |
||
107 | */ |
||
108 | public function setDate(DateTime $date) |
||
114 | |||
115 | /** |
||
116 | * Get date |
||
117 | * |
||
118 | * @return \DateTime |
||
119 | */ |
||
120 | public function getDate() |
||
124 | |||
125 | /** |
||
126 | * Set text |
||
127 | * |
||
128 | * @param string $text |
||
129 | * |
||
130 | * @return \AppBundle\Entity\FieldNote |
||
131 | */ |
||
132 | public function setText($text) |
||
138 | |||
139 | /** |
||
140 | * Get text |
||
141 | * |
||
142 | * @return string |
||
143 | */ |
||
144 | public function getText() |
||
148 | |||
149 | /** |
||
150 | * Set user |
||
151 | * |
||
152 | * @param \AppBundle\Entity\User|null $user |
||
153 | * |
||
154 | * @return \AppBundle\Entity\FieldNote |
||
155 | */ |
||
156 | public function setUser(User $user = null) |
||
162 | |||
163 | /** |
||
164 | * Get user |
||
165 | * |
||
166 | * @return \AppBundle\Entity\User |
||
167 | */ |
||
168 | public function getUser() |
||
172 | |||
173 | /** |
||
174 | * Set geocache |
||
175 | * |
||
176 | * @param \AppBundle\Entity\Geocache|null $geocache |
||
177 | * |
||
178 | * @return \AppBundle\Entity\FieldNote |
||
179 | */ |
||
180 | public function setGeocache(Geocache $geocache = null) |
||
186 | |||
187 | /** |
||
188 | * Get geocache |
||
189 | * |
||
190 | * @return \AppBundle\Entity\Geocache |
||
191 | */ |
||
192 | public function getGeocache() |
||
196 | } |
||
197 |