@@ -44,16 +44,16 @@ discard block |
||
44 | 44 | */ |
45 | 45 | private $isActive; |
46 | 46 | |
47 | - /** |
|
48 | - * @ORM\Column(type="datetime", nullable=true) |
|
49 | - */ |
|
50 | - protected $last_connection; |
|
47 | + /** |
|
48 | + * @ORM\Column(type="datetime", nullable=true) |
|
49 | + */ |
|
50 | + protected $last_connection; |
|
51 | 51 | |
52 | - /** |
|
53 | - * @ORM\OneToMany(targetEntity="AccountToken", mappedBy="account") |
|
54 | - * @ORM\JoinColumn(name="id", referencedColumnName="account_id", nullable=false) |
|
55 | - */ |
|
56 | - protected $tokens; |
|
52 | + /** |
|
53 | + * @ORM\OneToMany(targetEntity="AccountToken", mappedBy="account") |
|
54 | + * @ORM\JoinColumn(name="id", referencedColumnName="account_id", nullable=false) |
|
55 | + */ |
|
56 | + protected $tokens; |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * @var User |
@@ -65,27 +65,27 @@ discard block |
||
65 | 65 | */ |
66 | 66 | private $user; |
67 | 67 | |
68 | - /** |
|
69 | - * @ORM\Column(name="created_at", type="datetime", nullable=true) |
|
70 | - */ |
|
71 | - protected $created_at; |
|
68 | + /** |
|
69 | + * @ORM\Column(name="created_at", type="datetime", nullable=true) |
|
70 | + */ |
|
71 | + protected $created_at; |
|
72 | 72 | |
73 | - /** |
|
74 | - * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User") |
|
75 | - * @ORM\JoinColumn(name="created_by", referencedColumnName="id", nullable=false) |
|
76 | - */ |
|
77 | - protected $created_by; |
|
73 | + /** |
|
74 | + * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User") |
|
75 | + * @ORM\JoinColumn(name="created_by", referencedColumnName="id", nullable=false) |
|
76 | + */ |
|
77 | + protected $created_by; |
|
78 | 78 | |
79 | - /** |
|
80 | - * @ORM\Column(name="updated_at", type="datetime", nullable=true) |
|
81 | - */ |
|
82 | - protected $updated_at; |
|
79 | + /** |
|
80 | + * @ORM\Column(name="updated_at", type="datetime", nullable=true) |
|
81 | + */ |
|
82 | + protected $updated_at; |
|
83 | 83 | |
84 | - /** |
|
85 | - * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User") |
|
86 | - * @ORM\JoinColumn(name="updated_by", referencedColumnName="id", nullable=false) |
|
87 | - */ |
|
88 | - protected $updated_by; |
|
84 | + /** |
|
85 | + * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User") |
|
86 | + * @ORM\JoinColumn(name="updated_by", referencedColumnName="id", nullable=false) |
|
87 | + */ |
|
88 | + protected $updated_by; |
|
89 | 89 | |
90 | 90 | public function __construct() |
91 | 91 | { |
@@ -206,43 +206,43 @@ discard block |
||
206 | 206 | $this->user = $user; |
207 | 207 | } |
208 | 208 | |
209 | - /** |
|
210 | - * @return mixed |
|
211 | - */ |
|
212 | - public function getLastConnection() |
|
213 | - { |
|
214 | - return $this->last_connection; |
|
215 | - } |
|
209 | + /** |
|
210 | + * @return mixed |
|
211 | + */ |
|
212 | + public function getLastConnection() |
|
213 | + { |
|
214 | + return $this->last_connection; |
|
215 | + } |
|
216 | 216 | |
217 | - /** |
|
218 | - * @param mixed $last_connection |
|
219 | - * @return Account |
|
220 | - */ |
|
221 | - public function setLastConnection($last_connection) |
|
222 | - { |
|
223 | - $this->last_connection = $last_connection; |
|
217 | + /** |
|
218 | + * @param mixed $last_connection |
|
219 | + * @return Account |
|
220 | + */ |
|
221 | + public function setLastConnection($last_connection) |
|
222 | + { |
|
223 | + $this->last_connection = $last_connection; |
|
224 | 224 | |
225 | - return $this; |
|
226 | - } |
|
225 | + return $this; |
|
226 | + } |
|
227 | 227 | |
228 | - /** |
|
229 | - * @return mixed |
|
230 | - */ |
|
231 | - public function getTokens() |
|
232 | - { |
|
233 | - return $this->tokens; |
|
234 | - } |
|
228 | + /** |
|
229 | + * @return mixed |
|
230 | + */ |
|
231 | + public function getTokens() |
|
232 | + { |
|
233 | + return $this->tokens; |
|
234 | + } |
|
235 | 235 | |
236 | - /** |
|
237 | - * @param mixed $tokens |
|
238 | - * @return Account |
|
239 | - */ |
|
240 | - public function setTokens($tokens) |
|
241 | - { |
|
242 | - $this->tokens = $tokens; |
|
236 | + /** |
|
237 | + * @param mixed $tokens |
|
238 | + * @return Account |
|
239 | + */ |
|
240 | + public function setTokens($tokens) |
|
241 | + { |
|
242 | + $this->tokens = $tokens; |
|
243 | 243 | |
244 | - return $this; |
|
245 | - } |
|
244 | + return $this; |
|
245 | + } |
|
246 | 246 | |
247 | 247 | /** |
248 | 248 | * Returns the roles granted to the user. |
@@ -326,81 +326,81 @@ discard block |
||
326 | 326 | ) = unserialize($serialized); |
327 | 327 | } |
328 | 328 | |
329 | - /** |
|
330 | - * @return mixed |
|
331 | - */ |
|
332 | - public function getCreatedAt() |
|
333 | - { |
|
334 | - return $this->created_at; |
|
335 | - } |
|
329 | + /** |
|
330 | + * @return mixed |
|
331 | + */ |
|
332 | + public function getCreatedAt() |
|
333 | + { |
|
334 | + return $this->created_at; |
|
335 | + } |
|
336 | 336 | |
337 | - /** |
|
338 | - * @param mixed $created_at |
|
339 | - * @return Account |
|
340 | - */ |
|
341 | - public function setCreatedAt($created_at): Account |
|
342 | - { |
|
343 | - $this->created_at = $created_at; |
|
337 | + /** |
|
338 | + * @param mixed $created_at |
|
339 | + * @return Account |
|
340 | + */ |
|
341 | + public function setCreatedAt($created_at): Account |
|
342 | + { |
|
343 | + $this->created_at = $created_at; |
|
344 | 344 | |
345 | - return $this; |
|
346 | - } |
|
345 | + return $this; |
|
346 | + } |
|
347 | 347 | |
348 | - /** |
|
349 | - * @return mixed |
|
350 | - */ |
|
351 | - public function getCreatedBy() |
|
352 | - { |
|
353 | - return $this->created_by; |
|
354 | - } |
|
348 | + /** |
|
349 | + * @return mixed |
|
350 | + */ |
|
351 | + public function getCreatedBy() |
|
352 | + { |
|
353 | + return $this->created_by; |
|
354 | + } |
|
355 | 355 | |
356 | - /** |
|
357 | - * @ORM\PrePersist |
|
358 | - * @param mixed $created_by |
|
359 | - * @return Account |
|
360 | - */ |
|
361 | - public function setCreatedBy($created_by): Account |
|
362 | - { |
|
363 | - $this->created_by = $created_by; |
|
356 | + /** |
|
357 | + * @ORM\PrePersist |
|
358 | + * @param mixed $created_by |
|
359 | + * @return Account |
|
360 | + */ |
|
361 | + public function setCreatedBy($created_by): Account |
|
362 | + { |
|
363 | + $this->created_by = $created_by; |
|
364 | 364 | |
365 | - return $this; |
|
366 | - } |
|
365 | + return $this; |
|
366 | + } |
|
367 | 367 | |
368 | - /** |
|
369 | - * @return mixed |
|
370 | - */ |
|
371 | - public function getUpdatedAt() |
|
372 | - { |
|
373 | - return $this->updated_at; |
|
374 | - } |
|
368 | + /** |
|
369 | + * @return mixed |
|
370 | + */ |
|
371 | + public function getUpdatedAt() |
|
372 | + { |
|
373 | + return $this->updated_at; |
|
374 | + } |
|
375 | 375 | |
376 | - /** |
|
377 | - * @param mixed $updated_at |
|
378 | - * @return Account |
|
379 | - */ |
|
380 | - public function setUpdatedAt($updated_at): Account |
|
381 | - { |
|
382 | - $this->updated_at = $updated_at; |
|
376 | + /** |
|
377 | + * @param mixed $updated_at |
|
378 | + * @return Account |
|
379 | + */ |
|
380 | + public function setUpdatedAt($updated_at): Account |
|
381 | + { |
|
382 | + $this->updated_at = $updated_at; |
|
383 | 383 | |
384 | - return $this; |
|
385 | - } |
|
384 | + return $this; |
|
385 | + } |
|
386 | 386 | |
387 | - /** |
|
388 | - * @return mixed |
|
389 | - */ |
|
390 | - public function getUpdatedBy() |
|
391 | - { |
|
392 | - return $this->updated_by; |
|
393 | - } |
|
387 | + /** |
|
388 | + * @return mixed |
|
389 | + */ |
|
390 | + public function getUpdatedBy() |
|
391 | + { |
|
392 | + return $this->updated_by; |
|
393 | + } |
|
394 | 394 | |
395 | - /** |
|
396 | - * @ORM\PreUpdate |
|
397 | - * @param mixed $updated_by |
|
398 | - * @return Account |
|
399 | - */ |
|
400 | - public function setUpdatedBy($updated_by): Account |
|
401 | - { |
|
402 | - $this->updated_by = $updated_by; |
|
395 | + /** |
|
396 | + * @ORM\PreUpdate |
|
397 | + * @param mixed $updated_by |
|
398 | + * @return Account |
|
399 | + */ |
|
400 | + public function setUpdatedBy($updated_by): Account |
|
401 | + { |
|
402 | + $this->updated_by = $updated_by; |
|
403 | 403 | |
404 | - return $this; |
|
405 | - } |
|
404 | + return $this; |
|
405 | + } |
|
406 | 406 | } |