1 | <?php |
||
16 | class ErrorEntity extends AbstractImageUpload |
||
17 | { |
||
18 | /** |
||
19 | * @var int |
||
20 | * |
||
21 | * @ORM\Column(name="id", type="integer") |
||
22 | * @ORM\Id |
||
23 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
24 | */ |
||
25 | protected $id; |
||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | * |
||
30 | * @ORM\Column(name="code", type="integer") |
||
31 | */ |
||
32 | protected $code; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | * |
||
37 | * @ORM\Column(name="message", type="text", nullable=true) |
||
38 | */ |
||
39 | protected $message; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | * |
||
44 | * @ORM\Column(name="exception", type="text", nullable=true) |
||
45 | */ |
||
46 | protected $exception; |
||
47 | |||
48 | /** |
||
49 | * @var string |
||
50 | * |
||
51 | * @ORM\Column(name="data", type="text", nullable=true) |
||
52 | */ |
||
53 | protected $data; |
||
54 | |||
55 | /** |
||
56 | * @var \DateTime |
||
57 | * |
||
58 | * @ORM\Column(name="time_created", type="datetime") |
||
59 | */ |
||
60 | protected $timeCreated; |
||
61 | |||
62 | /** |
||
63 | * @var \DateTime |
||
64 | * |
||
65 | * @ORM\Column(name="time_updated", type="datetime") |
||
66 | */ |
||
67 | protected $timeUpdated; |
||
68 | |||
69 | /*** Id ***/ |
||
70 | /** |
||
71 | * @return int |
||
72 | */ |
||
73 | public function getId() |
||
77 | |||
78 | /** |
||
79 | * @param int $id |
||
80 | * |
||
81 | * @return ErrorEntity |
||
82 | */ |
||
83 | public function setId($id) |
||
89 | |||
90 | /*** Code ***/ |
||
91 | /** |
||
92 | * @return int |
||
93 | */ |
||
94 | public function getCode() |
||
98 | |||
99 | /** |
||
100 | * @param int $code |
||
101 | * |
||
102 | * @return ErrorEntity |
||
103 | */ |
||
104 | public function setCode($code) |
||
110 | |||
111 | /*** Message ***/ |
||
112 | /** |
||
113 | * @return string |
||
114 | */ |
||
115 | public function getMessage() |
||
119 | |||
120 | /** |
||
121 | * @param string $message |
||
122 | * |
||
123 | * @return ErrorEntity |
||
124 | */ |
||
125 | public function setMessage($message) |
||
131 | |||
132 | /*** Exception ***/ |
||
133 | /** |
||
134 | * @return string |
||
135 | */ |
||
136 | public function getException() |
||
140 | |||
141 | /** |
||
142 | * @param string $exception |
||
143 | * |
||
144 | * @return ErrorEntity |
||
145 | */ |
||
146 | public function setException($exception) |
||
152 | |||
153 | /*** Data ***/ |
||
154 | /** |
||
155 | * @return string |
||
156 | */ |
||
157 | public function getData() |
||
161 | |||
162 | /** |
||
163 | * @param string $data |
||
164 | * |
||
165 | * @return ErrorEntity |
||
166 | */ |
||
167 | public function setData($data) |
||
173 | |||
174 | /*** Time created ***/ |
||
175 | /** |
||
176 | * @return \DateTime |
||
177 | */ |
||
178 | public function getTimeCreated() |
||
182 | |||
183 | /** |
||
184 | * @param \DateTime $timeCreated |
||
185 | * |
||
186 | * @return ErrorEntity |
||
187 | */ |
||
188 | public function setTimeCreated(\DateTime $timeCreated) |
||
194 | |||
195 | /*** Time updated ***/ |
||
196 | /** |
||
197 | * @return \DateTime |
||
198 | */ |
||
199 | public function getTimeUpdated() |
||
203 | |||
204 | /** |
||
205 | * @param \DateTime $timeUpdated |
||
206 | * |
||
207 | * @return ErrorEntity |
||
208 | */ |
||
209 | public function setTimeUpdated(\DateTime $timeUpdated) |
||
215 | |||
216 | /** |
||
217 | * @return array |
||
218 | */ |
||
219 | public function toArray() |
||
229 | |||
230 | /** |
||
231 | * @return string |
||
232 | */ |
||
233 | public function __toString() |
||
237 | |||
238 | /** |
||
239 | * @ORM\PreUpdate |
||
240 | */ |
||
241 | public function preUpdate() |
||
245 | |||
246 | /** |
||
247 | * @ORM\PrePersist |
||
248 | */ |
||
249 | public function prePersist() |
||
254 | } |
||
255 |