1 | <?php |
||
17 | class PostVoteComment implements InputFilterAwareInterface, \JsonSerializable |
||
18 | { |
||
19 | protected $inputFilter; |
||
20 | |||
21 | /** |
||
22 | * @ORM\Id |
||
23 | * @ORM\Column(type="integer"); |
||
24 | * @ORM\GeneratedValue(strategy="AUTO") |
||
25 | */ |
||
26 | protected $id; |
||
27 | |||
28 | /** |
||
29 | * @ORM\ManyToOne(targetEntity="PostVotePost", inversedBy="comments") |
||
30 | * @ORM\JoinColumn(name="post_id", referencedColumnName="id", onDelete="CASCADE") |
||
31 | **/ |
||
32 | protected $post; |
||
33 | |||
34 | /** |
||
35 | * @ORM\ManyToOne(targetEntity="PostVote") |
||
36 | **/ |
||
37 | protected $postvote; |
||
38 | |||
39 | /** |
||
40 | * @ORM\OneToMany(targetEntity="PostVoteVote", mappedBy="postComment") |
||
41 | * @ORM\OrderBy({"createdAt" = "DESC"}) |
||
42 | */ |
||
43 | private $votes; |
||
44 | |||
45 | /** |
||
46 | * @ORM\ManyToOne(targetEntity="PlaygroundUser\Entity\User") |
||
47 | * @ORM\JoinColumn(name="user_id", referencedColumnName="user_id", onDelete="CASCADE") |
||
48 | **/ |
||
49 | protected $user; |
||
50 | |||
51 | /** |
||
52 | * @ORM\Column(type="text", nullable=true) |
||
53 | */ |
||
54 | protected $ip; |
||
55 | |||
56 | /** |
||
57 | * @ORM\Column(type="text", nullable=true) |
||
58 | */ |
||
59 | protected $message; |
||
60 | |||
61 | /** |
||
62 | * @ORM\Column(type="text", nullable=true) |
||
63 | */ |
||
64 | protected $category; |
||
65 | |||
66 | /** |
||
67 | * @ORM\Column(name="created_at", type="datetime") |
||
68 | */ |
||
69 | protected $createdAt; |
||
70 | |||
71 | /** |
||
72 | * @ORM\Column(name="updated_at", type="datetime") |
||
73 | */ |
||
74 | protected $updatedAt; |
||
75 | |||
76 | public function __construct() |
||
80 | |||
81 | /** @PrePersist */ |
||
82 | public function createChrono() |
||
87 | |||
88 | /** @PreUpdate */ |
||
89 | public function updateChrono() |
||
93 | |||
94 | /** |
||
95 | * @return the unknown_type |
||
96 | */ |
||
97 | public function getId() |
||
101 | |||
102 | /** |
||
103 | * @param unknown_type $id |
||
104 | */ |
||
105 | public function setId($id) |
||
111 | |||
112 | /** |
||
113 | * @return string unknown_type |
||
114 | */ |
||
115 | public function getIp() |
||
119 | |||
120 | /** |
||
121 | * @param string $ip |
||
122 | */ |
||
123 | public function setIp($ip) |
||
129 | |||
130 | /** |
||
131 | * @return the unknown_type |
||
132 | */ |
||
133 | public function getUser() |
||
137 | |||
138 | /** |
||
139 | * @param unknown_type $user |
||
140 | */ |
||
141 | public function setUser($user) |
||
147 | |||
148 | /** |
||
149 | * @return the unknown_type |
||
150 | */ |
||
151 | public function getPost() |
||
155 | |||
156 | /** |
||
157 | * @param unknown_type $post |
||
158 | */ |
||
159 | public function setPost($post) |
||
167 | |||
168 | /** |
||
169 | * @return the unknown_type |
||
170 | */ |
||
171 | public function getPostvote() |
||
175 | |||
176 | /** |
||
177 | * @param unknown_type $postvote |
||
178 | */ |
||
179 | public function setPostvote($postvote) |
||
185 | |||
186 | /** |
||
187 | * Add an entry to the vote. |
||
188 | * |
||
189 | * @param PostVoteVote $vote |
||
190 | * |
||
191 | * @return void |
||
192 | */ |
||
193 | public function addVote($vote) |
||
197 | |||
198 | /** |
||
199 | * @return the unknown_type |
||
200 | */ |
||
201 | public function getVotes() |
||
205 | |||
206 | /** |
||
207 | * @param unknown_type $votes |
||
208 | */ |
||
209 | public function setVotes($votes) |
||
215 | |||
216 | /** |
||
217 | * @return the unknown_type |
||
218 | */ |
||
219 | public function getMessage() |
||
223 | |||
224 | /** |
||
225 | * @param unknown_type $message |
||
226 | */ |
||
227 | public function setMessage($message) |
||
233 | |||
234 | /** |
||
235 | * @return the unknown_type |
||
236 | */ |
||
237 | public function getCategory() |
||
241 | |||
242 | /** |
||
243 | * @param unknown_type $category |
||
244 | */ |
||
245 | public function setCategory($category) |
||
251 | /** |
||
252 | * @return the unknown_type |
||
253 | */ |
||
254 | public function getCreatedAt() |
||
258 | |||
259 | /** |
||
260 | * @param unknown_type $createdAt |
||
261 | */ |
||
262 | public function setCreatedAt($createdAt) |
||
268 | |||
269 | /** |
||
270 | * @return the unknown_type |
||
271 | */ |
||
272 | public function getUpdatedAt() |
||
276 | |||
277 | /** |
||
278 | * @param unknown_type $updatedAt |
||
279 | */ |
||
280 | public function setUpdatedAt($updatedAt) |
||
286 | |||
287 | /** |
||
288 | * Convert the object to an array. |
||
289 | * |
||
290 | * @return array |
||
291 | */ |
||
292 | public function getArrayCopy() |
||
298 | |||
299 | /** |
||
300 | * Convert the object to json. |
||
301 | * |
||
302 | * @return array |
||
303 | */ |
||
304 | public function jsonSerialize() |
||
308 | |||
309 | /** |
||
310 | * Populate from an array. |
||
311 | * |
||
312 | * @param array $data |
||
313 | */ |
||
314 | public function populate($data = array()) |
||
317 | |||
318 | public function setInputFilter(InputFilterInterface $inputFilter) |
||
322 | |||
323 | public function getInputFilter() |
||
333 | } |
||
334 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.