1 | <?php |
||
16 | class ErrorEntity extends AbstractImageUpload |
||
17 | { |
||
18 | /** |
||
19 | * @var integer |
||
20 | * |
||
21 | * @ORM\Column(name="id", type="integer") |
||
22 | * @ORM\Id |
||
23 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
24 | */ |
||
25 | protected $id; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
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 \DateTime |
||
50 | * |
||
51 | * @ORM\Column(name="time_created", type="datetime") |
||
52 | */ |
||
53 | protected $timeCreated; |
||
54 | |||
55 | /** |
||
56 | * @var \DateTime |
||
57 | * |
||
58 | * @ORM\Column(name="time_updated", type="datetime") |
||
59 | */ |
||
60 | protected $timeUpdated; |
||
61 | |||
62 | /*** Id ***/ |
||
63 | /** |
||
64 | * @return integer |
||
65 | */ |
||
66 | public function getId() |
||
70 | |||
71 | /** |
||
72 | * @param integer $id |
||
73 | * |
||
74 | * @return ErrorEntity |
||
75 | */ |
||
76 | public function setId($id) |
||
82 | |||
83 | /*** Code ***/ |
||
84 | /** |
||
85 | * @return integer |
||
86 | */ |
||
87 | public function getCode() |
||
91 | |||
92 | /** |
||
93 | * @param integer $code |
||
94 | * |
||
95 | * @return ErrorEntity |
||
96 | */ |
||
97 | public function setCode($code) |
||
103 | |||
104 | /*** Message ***/ |
||
105 | /** |
||
106 | * @return string |
||
107 | */ |
||
108 | public function getMessage() |
||
112 | |||
113 | /** |
||
114 | * @param string $message |
||
115 | * |
||
116 | * @return ErrorEntity |
||
117 | */ |
||
118 | public function setMessage($message) |
||
124 | |||
125 | /*** Exception ***/ |
||
126 | /** |
||
127 | * @return string |
||
128 | */ |
||
129 | public function getException() |
||
133 | |||
134 | /** |
||
135 | * @param string $exception |
||
136 | * |
||
137 | * @return ErrorEntity |
||
138 | */ |
||
139 | public function setException($exception) |
||
145 | |||
146 | /*** Time created ***/ |
||
147 | /** |
||
148 | * @return \DateTime |
||
149 | */ |
||
150 | public function getTimeCreated() |
||
154 | |||
155 | /** |
||
156 | * @param \DateTime $timeCreated |
||
157 | * |
||
158 | * @return ErrorEntity |
||
159 | */ |
||
160 | public function setTimeCreated(\DateTime $timeCreated) |
||
166 | |||
167 | /*** Time updated ***/ |
||
168 | /** |
||
169 | * @return \DateTime |
||
170 | */ |
||
171 | public function getTimeUpdated() |
||
175 | |||
176 | /** |
||
177 | * @param \DateTime $timeUpdated |
||
178 | * |
||
179 | * @return ErrorEntity |
||
180 | */ |
||
181 | public function setTimeUpdated(\DateTime $timeUpdated) |
||
187 | |||
188 | /** |
||
189 | * @return array |
||
190 | */ |
||
191 | public function toArray() |
||
201 | |||
202 | /** |
||
203 | * @return string |
||
204 | */ |
||
205 | public function __toString() |
||
209 | |||
210 | /** |
||
211 | * @ORM\PreUpdate |
||
212 | */ |
||
213 | public function preUpdate() |
||
217 | |||
218 | /** |
||
219 | * @ORM\PrePersist |
||
220 | */ |
||
221 | public function prePersist() |
||
226 | } |
||
227 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.