1 | <?php |
||
16 | class PostVoteVote implements InputFilterAwareInterface |
||
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="PlaygroundUser\Entity\User") |
||
40 | * @ORM\JoinColumn(name="user_id", referencedColumnName="user_id", onDelete="CASCADE") |
||
41 | */ |
||
42 | protected $user; |
||
43 | |||
44 | /** |
||
45 | * @ORM\Column(type="text", nullable=true) |
||
46 | */ |
||
47 | protected $ip; |
||
48 | |||
49 | /** |
||
50 | * @ORM\Column(type="text", nullable=true) |
||
51 | */ |
||
52 | protected $message; |
||
53 | |||
54 | /** |
||
55 | * @ORM\Column(type="string", nullable=true) |
||
56 | */ |
||
57 | protected $note; |
||
58 | |||
59 | /** |
||
60 | * @ORM\Column(name="created_at", type="datetime") |
||
61 | */ |
||
62 | protected $createdAt; |
||
63 | |||
64 | /** |
||
65 | * @ORM\Column(name="updated_at", type="datetime") |
||
66 | */ |
||
67 | protected $updatedAt; |
||
68 | |||
69 | /** @PrePersist */ |
||
70 | public function createChrono() |
||
75 | |||
76 | /** @PreUpdate */ |
||
77 | public function updateChrono() |
||
81 | |||
82 | /** |
||
83 | * @return the unknown_type |
||
84 | */ |
||
85 | public function getId() |
||
89 | |||
90 | /** |
||
91 | * @param unknown_type $id |
||
92 | */ |
||
93 | public function setId($id) |
||
99 | |||
100 | /** |
||
101 | * @return string unknown_type |
||
102 | */ |
||
103 | public function getIp() |
||
107 | |||
108 | /** |
||
109 | * @param string $ip |
||
110 | */ |
||
111 | public function setIp($ip) |
||
117 | |||
118 | /** |
||
119 | * @return the unknown_type |
||
120 | */ |
||
121 | public function getUser() |
||
125 | |||
126 | /** |
||
127 | * @param unknown_type $user |
||
128 | */ |
||
129 | public function setUser($user) |
||
135 | |||
136 | /** |
||
137 | * @return the unknown_type |
||
138 | */ |
||
139 | public function getPost() |
||
143 | |||
144 | /** |
||
145 | * @param unknown_type $post |
||
146 | */ |
||
147 | public function setPost($post) |
||
155 | |||
156 | /** |
||
157 | * @return the unknown_type |
||
158 | */ |
||
159 | public function getPostvote() |
||
163 | |||
164 | /** |
||
165 | * @param unknown_type $postvote |
||
166 | */ |
||
167 | public function setPostvote($postvote) |
||
174 | |||
175 | /** |
||
176 | * @return the unknown_type |
||
177 | */ |
||
178 | public function getMessage() |
||
182 | |||
183 | /** |
||
184 | * @param unknown_type $message |
||
185 | */ |
||
186 | public function setMessage($message) |
||
192 | |||
193 | /** |
||
194 | * @return the unknown_type |
||
195 | */ |
||
196 | public function getNote() |
||
200 | |||
201 | /** |
||
202 | * @param unknown_type $note |
||
203 | */ |
||
204 | public function setNote($note) |
||
210 | |||
211 | /** |
||
212 | * @return the unknown_type |
||
213 | */ |
||
214 | public function getCreatedAt() |
||
218 | |||
219 | /** |
||
220 | * @param unknown_type $createdAt |
||
221 | */ |
||
222 | public function setCreatedAt($createdAt) |
||
228 | |||
229 | /** |
||
230 | * @return the unknown_type |
||
231 | */ |
||
232 | public function getUpdatedAt() |
||
236 | |||
237 | /** |
||
238 | * @param unknown_type $updatedAt |
||
239 | */ |
||
240 | public function setUpdatedAt($updatedAt) |
||
246 | |||
247 | /** |
||
248 | * Convert the object to an array. |
||
249 | * |
||
250 | * @return array |
||
251 | */ |
||
252 | public function getArrayCopy() |
||
258 | |||
259 | /** |
||
260 | * Populate from an array. |
||
261 | * |
||
262 | * @param array $data |
||
263 | */ |
||
264 | public function populate($data = array()) |
||
267 | |||
268 | public function setInputFilter(InputFilterInterface $inputFilter) |
||
272 | |||
273 | public function getInputFilter() |
||
283 | } |
||
284 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.