1 | <?php |
||
16 | class PostVoteVote implements InputFilterAwareInterface, \JsonSerializable |
||
17 | { |
||
18 | protected $inputFilter; |
||
19 | |||
20 | /** |
||
21 | * @ORM\Id |
||
22 | * @ORM\Column(type="integer"); |
||
23 | * @ORM\GeneratedValue(strategy="AUTO") |
||
24 | */ |
||
25 | protected $id; |
||
26 | |||
27 | /** |
||
28 | * @ORM\ManyToOne(targetEntity="PostVotePost", inversedBy="votes") |
||
29 | * @ORM\JoinColumn(name="post_id", referencedColumnName="id", onDelete="CASCADE") |
||
30 | **/ |
||
31 | protected $post; |
||
32 | |||
33 | /** |
||
34 | * @ORM\ManyToOne(targetEntity="PostVote") |
||
35 | **/ |
||
36 | protected $postvote; |
||
37 | |||
38 | /** |
||
39 | * @ORM\ManyToOne(targetEntity="PostVoteComment", inversedBy="votes") |
||
40 | * @ORM\JoinColumn(name="comment_id", referencedColumnName="id", onDelete="CASCADE") |
||
41 | **/ |
||
42 | protected $postComment; |
||
43 | |||
44 | /** |
||
45 | * @ORM\ManyToOne(targetEntity="PlaygroundUser\Entity\User") |
||
46 | * @ORM\JoinColumn(name="user_id", referencedColumnName="user_id", onDelete="CASCADE") |
||
47 | */ |
||
48 | protected $user; |
||
49 | |||
50 | /** |
||
51 | * @ORM\Column(type="text", nullable=true) |
||
52 | */ |
||
53 | protected $ip; |
||
54 | |||
55 | /** |
||
56 | * @ORM\Column(type="text", nullable=true) |
||
57 | */ |
||
58 | protected $message; |
||
59 | |||
60 | /** |
||
61 | * @ORM\Column(type="string", nullable=true) |
||
62 | */ |
||
63 | protected $note; |
||
64 | |||
65 | /** |
||
66 | * @ORM\Column(name="created_at", type="datetime") |
||
67 | */ |
||
68 | protected $createdAt; |
||
69 | |||
70 | /** |
||
71 | * @ORM\Column(name="updated_at", type="datetime") |
||
72 | */ |
||
73 | protected $updatedAt; |
||
74 | |||
75 | /** @PrePersist */ |
||
76 | public function createChrono() |
||
81 | |||
82 | /** @PreUpdate */ |
||
83 | public function updateChrono() |
||
87 | |||
88 | /** |
||
89 | * @return the unknown_type |
||
90 | */ |
||
91 | public function getId() |
||
95 | |||
96 | /** |
||
97 | * @param unknown_type $id |
||
98 | */ |
||
99 | public function setId($id) |
||
105 | |||
106 | /** |
||
107 | * @return string unknown_type |
||
108 | */ |
||
109 | public function getIp() |
||
113 | |||
114 | /** |
||
115 | * @param string $ip |
||
116 | */ |
||
117 | public function setIp($ip) |
||
123 | |||
124 | /** |
||
125 | * @return the unknown_type |
||
126 | */ |
||
127 | public function getUser() |
||
131 | |||
132 | /** |
||
133 | * @param unknown_type $user |
||
134 | */ |
||
135 | public function setUser($user) |
||
141 | |||
142 | /** |
||
143 | * @return the unknown_type |
||
144 | */ |
||
145 | public function getPost() |
||
149 | |||
150 | /** |
||
151 | * @param unknown_type $post |
||
152 | */ |
||
153 | public function setPost($post, $isAVoteForPost=false) |
||
167 | |||
168 | /** |
||
169 | * @return the unknown_type |
||
170 | */ |
||
171 | public function getPostComment() |
||
175 | |||
176 | /** |
||
177 | * @param unknown_type $postComment |
||
178 | */ |
||
179 | public function setPostComment($postComment) |
||
187 | |||
188 | /** |
||
189 | * @return the unknown_type |
||
190 | */ |
||
191 | public function getPostvote() |
||
195 | |||
196 | /** |
||
197 | * @param unknown_type $postvote |
||
198 | */ |
||
199 | public function setPostvote($postvote) |
||
205 | |||
206 | /** |
||
207 | * @return the unknown_type |
||
208 | */ |
||
209 | public function getMessage() |
||
213 | |||
214 | /** |
||
215 | * @param unknown_type $message |
||
216 | */ |
||
217 | public function setMessage($message) |
||
223 | |||
224 | /** |
||
225 | * @return the unknown_type |
||
226 | */ |
||
227 | public function getNote() |
||
231 | |||
232 | /** |
||
233 | * @param unknown_type $note |
||
234 | */ |
||
235 | public function setNote($note) |
||
241 | |||
242 | /** |
||
243 | * @return the unknown_type |
||
244 | */ |
||
245 | public function getCreatedAt() |
||
249 | |||
250 | /** |
||
251 | * @param unknown_type $createdAt |
||
252 | */ |
||
253 | public function setCreatedAt($createdAt) |
||
259 | |||
260 | /** |
||
261 | * @return the unknown_type |
||
262 | */ |
||
263 | public function getUpdatedAt() |
||
267 | |||
268 | /** |
||
269 | * @param unknown_type $updatedAt |
||
270 | */ |
||
271 | public function setUpdatedAt($updatedAt) |
||
277 | |||
278 | /** |
||
279 | * Convert the object to an array. |
||
280 | * |
||
281 | * @return array |
||
282 | */ |
||
283 | public function getArrayCopy() |
||
289 | |||
290 | /** |
||
291 | * Convert the object to json. |
||
292 | * |
||
293 | * @return array |
||
294 | */ |
||
295 | public function jsonSerialize() |
||
299 | |||
300 | /** |
||
301 | * Populate from an array. |
||
302 | * |
||
303 | * @param array $data |
||
304 | */ |
||
305 | public function populate($data = array()) |
||
308 | |||
309 | public function setInputFilter(InputFilterInterface $inputFilter) |
||
313 | |||
314 | public function getInputFilter() |
||
324 | } |
||
325 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.