1 | <?php |
||
17 | class PostVoteView 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\ManyToOne(targetEntity="PlaygroundUser\Entity\User") |
||
41 | * @ORM\JoinColumn(name="user_id", referencedColumnName="user_id", onDelete="CASCADE") |
||
42 | **/ |
||
43 | protected $user; |
||
44 | |||
45 | /** |
||
46 | * @ORM\Column(type="text", nullable=true) |
||
47 | */ |
||
48 | protected $ip; |
||
49 | |||
50 | /** |
||
51 | * @ORM\Column(name="created_at", type="datetime") |
||
52 | */ |
||
53 | protected $createdAt; |
||
54 | |||
55 | /** |
||
56 | * @ORM\Column(name="updated_at", type="datetime") |
||
57 | */ |
||
58 | protected $updatedAt; |
||
59 | |||
60 | /** @PrePersist */ |
||
61 | public function createChrono() |
||
66 | |||
67 | /** @PreUpdate */ |
||
68 | public function updateChrono() |
||
72 | |||
73 | /** |
||
74 | * @return the unknown_type |
||
75 | */ |
||
76 | public function getId() |
||
80 | |||
81 | /** |
||
82 | * @param unknown_type $id |
||
83 | */ |
||
84 | public function setId($id) |
||
90 | |||
91 | /** |
||
92 | * @return string unknown_type |
||
93 | */ |
||
94 | public function getIp() |
||
98 | |||
99 | /** |
||
100 | * @param string $ip |
||
101 | */ |
||
102 | public function setIp($ip) |
||
108 | |||
109 | /** |
||
110 | * @return the unknown_type |
||
111 | */ |
||
112 | public function getUser() |
||
116 | |||
117 | /** |
||
118 | * @param unknown_type $user |
||
119 | */ |
||
120 | public function setUser($user) |
||
126 | |||
127 | /** |
||
128 | * @return the unknown_type |
||
129 | */ |
||
130 | public function getPost() |
||
134 | |||
135 | /** |
||
136 | * @param unknown_type $post |
||
137 | */ |
||
138 | public function setPost($post) |
||
146 | |||
147 | /** |
||
148 | * @return the unknown_type |
||
149 | */ |
||
150 | public function getPostvote() |
||
154 | |||
155 | /** |
||
156 | * @param unknown_type $postvote |
||
157 | */ |
||
158 | public function setPostvote($postvote) |
||
164 | |||
165 | /** |
||
166 | * @return the unknown_type |
||
167 | */ |
||
168 | public function getCreatedAt() |
||
172 | |||
173 | /** |
||
174 | * @param unknown_type $createdAt |
||
175 | */ |
||
176 | public function setCreatedAt($createdAt) |
||
182 | |||
183 | /** |
||
184 | * @return the unknown_type |
||
185 | */ |
||
186 | public function getUpdatedAt() |
||
190 | |||
191 | /** |
||
192 | * @param unknown_type $updatedAt |
||
193 | */ |
||
194 | public function setUpdatedAt($updatedAt) |
||
200 | |||
201 | /** |
||
202 | * Convert the object to an array. |
||
203 | * |
||
204 | * @return array |
||
205 | */ |
||
206 | public function getArrayCopy() |
||
212 | |||
213 | /** |
||
214 | * Convert the object to json. |
||
215 | * |
||
216 | * @return array |
||
217 | */ |
||
218 | public function jsonSerialize() |
||
222 | |||
223 | /** |
||
224 | * Populate from an array. |
||
225 | * |
||
226 | * @param array $data |
||
227 | */ |
||
228 | public function populate($data = array()) |
||
231 | |||
232 | public function setInputFilter(InputFilterInterface $inputFilter) |
||
236 | |||
237 | public function getInputFilter() |
||
247 | } |
||
248 |