Passed
Push — master ( 60b1cb...62a444 )
by Anthony
07:00
created
EventListener/CreateUpdateAwareListener.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -12,30 +12,30 @@
 block discarded – undo
12 12
 	 */
13 13
 	private $user;
14 14
 
15
-    /**
16
-     * CreateUpdateAwareListener constructor.
17
-     * @param TokenStorage $tokenStorage
18
-     */
19
-    public function __construct(TokenStorage $tokenStorage)
15
+				/**
16
+				 * CreateUpdateAwareListener constructor.
17
+				 * @param TokenStorage $tokenStorage
18
+				 */
19
+				public function __construct(TokenStorage $tokenStorage)
20 20
 	{
21
-        $this->user = $tokenStorage->getToken()->getUser()->getUser();
21
+								$this->user = $tokenStorage->getToken()->getUser()->getUser();
22 22
 	}
23 23
 	
24 24
 	public function prePersist($entity)
25 25
 	{
26 26
 		if ($entity->getCreatedBy() === null) {
27
-            $entity->setCreatedAt(new \DateTime());
28
-            $entity->setCreatedBy($this->user);
27
+												$entity->setCreatedAt(new \DateTime());
28
+												$entity->setCreatedBy($this->user);
29 29
 		}
30
-        if ($entity->getUpdatedBy() === null) {
31
-            $entity->setUpdatedAt(new \DateTime());
32
-            $entity->setUpdatedBy($this->user);
33
-        }
30
+								if ($entity->getUpdatedBy() === null) {
31
+												$entity->setUpdatedAt(new \DateTime());
32
+												$entity->setUpdatedBy($this->user);
33
+								}
34 34
 	}
35 35
 
36
-    public function preUpdate($entity)
37
-    {
38
-        $entity->setUpdatedAt(new \DateTime());
39
-        $entity->setUpdatedBy($this->user);
40
-    }
36
+				public function preUpdate($entity)
37
+				{
38
+								$entity->setUpdatedAt(new \DateTime());
39
+								$entity->setUpdatedBy($this->user);
40
+				}
41 41
 }
Please login to merge, or discard this patch.
Entity/Account.php 1 patch
Indentation   +127 added lines, -127 removed lines patch added patch discarded remove patch
@@ -44,16 +44,16 @@  discard block
 block discarded – undo
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,29 +65,29 @@  discard block
 block discarded – undo
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\Column(name="created_by", type="integer", nullable=false)
75
-     * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User")
76
-     * @ORM\JoinColumn(name="created_by", referencedColumnName="id", nullable=false)
77
-     */
78
-    protected $created_by;
73
+				/**
74
+				 * @ORM\Column(name="created_by", type="integer", nullable=false)
75
+				 * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User")
76
+				 * @ORM\JoinColumn(name="created_by", referencedColumnName="id", nullable=false)
77
+				 */
78
+				protected $created_by;
79 79
 
80
-    /**
81
-     * @ORM\Column(name="updated_at", type="datetime", nullable=true)
82
-     */
83
-    protected $updated_at;
80
+				/**
81
+				 * @ORM\Column(name="updated_at", type="datetime", nullable=true)
82
+				 */
83
+				protected $updated_at;
84 84
 
85
-    /**
86
-     * @ORM\Column(name="updated_by", type="integer", nullable=false)
87
-     * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User")
88
-     * @ORM\JoinColumn(name="updated_by", referencedColumnName="id", nullable=false)
89
-     */
90
-    protected $updated_by;
85
+				/**
86
+				 * @ORM\Column(name="updated_by", type="integer", nullable=false)
87
+				 * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User")
88
+				 * @ORM\JoinColumn(name="updated_by", referencedColumnName="id", nullable=false)
89
+				 */
90
+				protected $updated_by;
91 91
 	
92 92
 	public function __construct()
93 93
 	{
@@ -208,43 +208,43 @@  discard block
 block discarded – undo
208 208
 		$this->user = $user;
209 209
 	}
210 210
 
211
-    /**
212
-     * @return mixed
213
-     */
214
-    public function getLastConnection()
215
-    {
216
-        return $this->last_connection;
217
-    }
211
+				/**
212
+				 * @return mixed
213
+				 */
214
+				public function getLastConnection()
215
+				{
216
+								return $this->last_connection;
217
+				}
218 218
 
219
-    /**
220
-     * @param mixed $last_connection
221
-     * @return Account
222
-     */
223
-    public function setLastConnection($last_connection)
224
-    {
225
-        $this->last_connection = $last_connection;
219
+				/**
220
+				 * @param mixed $last_connection
221
+				 * @return Account
222
+				 */
223
+				public function setLastConnection($last_connection)
224
+				{
225
+								$this->last_connection = $last_connection;
226 226
 
227
-        return $this;
228
-    }
227
+								return $this;
228
+				}
229 229
 
230
-    /**
231
-     * @return mixed
232
-     */
233
-    public function getTokens()
234
-    {
235
-        return $this->tokens;
236
-    }
230
+				/**
231
+				 * @return mixed
232
+				 */
233
+				public function getTokens()
234
+				{
235
+								return $this->tokens;
236
+				}
237 237
 
238
-    /**
239
-     * @param mixed $tokens
240
-     * @return Account
241
-     */
242
-    public function setTokens($tokens)
243
-    {
244
-        $this->tokens = $tokens;
238
+				/**
239
+				 * @param mixed $tokens
240
+				 * @return Account
241
+				 */
242
+				public function setTokens($tokens)
243
+				{
244
+								$this->tokens = $tokens;
245 245
 
246
-        return $this;
247
-    }
246
+								return $this;
247
+				}
248 248
 	
249 249
 	/**
250 250
 	 * Returns the roles granted to the user.
@@ -328,81 +328,81 @@  discard block
 block discarded – undo
328 328
 			) = unserialize($serialized);
329 329
 	}
330 330
 
331
-    /**
332
-     * @return mixed
333
-     */
334
-    public function getCreatedAt()
335
-    {
336
-        return $this->created_at;
337
-    }
331
+				/**
332
+				 * @return mixed
333
+				 */
334
+				public function getCreatedAt()
335
+				{
336
+								return $this->created_at;
337
+				}
338 338
 
339
-    /**
340
-     * @param mixed $created_at
341
-     * @return Account
342
-     */
343
-    public function setCreatedAt($created_at): Account
344
-    {
345
-        $this->created_at = $created_at;
339
+				/**
340
+				 * @param mixed $created_at
341
+				 * @return Account
342
+				 */
343
+				public function setCreatedAt($created_at): Account
344
+				{
345
+								$this->created_at = $created_at;
346 346
 
347
-        return $this;
348
-    }
347
+								return $this;
348
+				}
349 349
 
350
-    /**
351
-     * @return mixed
352
-     */
353
-    public function getCreatedBy()
354
-    {
355
-        return $this->created_by;
356
-    }
350
+				/**
351
+				 * @return mixed
352
+				 */
353
+				public function getCreatedBy()
354
+				{
355
+								return $this->created_by;
356
+				}
357 357
 
358
-    /**
359
-     * @ORM\PrePersist
360
-     * @param mixed $created_by
361
-     * @return Account
362
-     */
363
-    public function setCreatedBy($created_by): Account
364
-    {
365
-        $this->created_by = $created_by;
358
+				/**
359
+				 * @ORM\PrePersist
360
+				 * @param mixed $created_by
361
+				 * @return Account
362
+				 */
363
+				public function setCreatedBy($created_by): Account
364
+				{
365
+								$this->created_by = $created_by;
366 366
 
367
-        return $this;
368
-    }
367
+								return $this;
368
+				}
369 369
 
370
-    /**
371
-     * @return mixed
372
-     */
373
-    public function getUpdatedAt()
374
-    {
375
-        return $this->updated_at;
376
-    }
370
+				/**
371
+				 * @return mixed
372
+				 */
373
+				public function getUpdatedAt()
374
+				{
375
+								return $this->updated_at;
376
+				}
377 377
 
378
-    /**
379
-     * @param mixed $updated_at
380
-     * @return Account
381
-     */
382
-    public function setUpdatedAt($updated_at): Account
383
-    {
384
-        $this->updated_at = $updated_at;
378
+				/**
379
+				 * @param mixed $updated_at
380
+				 * @return Account
381
+				 */
382
+				public function setUpdatedAt($updated_at): Account
383
+				{
384
+								$this->updated_at = $updated_at;
385 385
 
386
-        return $this;
387
-    }
386
+								return $this;
387
+				}
388 388
 
389
-    /**
390
-     * @return mixed
391
-     */
392
-    public function getUpdatedBy()
393
-    {
394
-        return $this->updated_by;
395
-    }
389
+				/**
390
+				 * @return mixed
391
+				 */
392
+				public function getUpdatedBy()
393
+				{
394
+								return $this->updated_by;
395
+				}
396 396
 
397
-    /**
398
-     * @ORM\PreUpdate
399
-     * @param mixed $updated_by
400
-     * @return Account
401
-     */
402
-    public function setUpdatedBy($updated_by): Account
403
-    {
404
-        $this->updated_by = $updated_by;
397
+				/**
398
+				 * @ORM\PreUpdate
399
+				 * @param mixed $updated_by
400
+				 * @return Account
401
+				 */
402
+				public function setUpdatedBy($updated_by): Account
403
+				{
404
+								$this->updated_by = $updated_by;
405 405
 
406
-        return $this;
407
-    }
406
+								return $this;
407
+				}
408 408
 }
Please login to merge, or discard this patch.
Entity/User.php 1 patch
Indentation   +307 added lines, -307 removed lines patch added patch discarded remove patch
@@ -14,21 +14,21 @@  discard block
 block discarded – undo
14 14
  */
15 15
 class User
16 16
 {
17
-    /**
18
-     * @var integer
19
-     *
20
-     * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
21
-     * @ORM\Id
22
-     * @ORM\GeneratedValue(strategy="IDENTITY")
23
-     */
24
-    private $id;
25
-
26
-    /**
27
-     * @var string
28
-     *
29
-     * @ORM\Column(name="guid", type="string", length=255, nullable=false)
30
-     */
31
-    private $guid;
17
+				/**
18
+				 * @var integer
19
+				 *
20
+				 * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
21
+				 * @ORM\Id
22
+				 * @ORM\GeneratedValue(strategy="IDENTITY")
23
+				 */
24
+				private $id;
25
+
26
+				/**
27
+				 * @var string
28
+				 *
29
+				 * @ORM\Column(name="guid", type="string", length=255, nullable=false)
30
+				 */
31
+				private $guid;
32 32
 	
33 33
 	/**
34 34
 	 * @var AccessRight
@@ -36,63 +36,63 @@  discard block
 block discarded – undo
36 36
 	 * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\AccessRight", inversedBy="users")
37 37
 	 * @ORM\JoinColumn(name="id_access_right", referencedColumnName="id", nullable=true)
38 38
 	 */
39
-    private $accessRightList;
39
+				private $accessRightList;
40 40
 	
41 41
 	/**
42 42
 	 * @var boolean
43 43
 	 *
44 44
 	 * @ORM\Column(name="admin", type="boolean", nullable=true, options={"default": false})
45 45
 	 */
46
-    private $admin;
47
-
48
-    /**
49
-     * @var string
50
-     *
51
-     * @ORM\Column(name="firstname", type="string", length=255, nullable=false)
52
-     */
53
-    private $firstname;
54
-
55
-    /**
56
-     * @var string
57
-     *
58
-     * @ORM\Column(name="lastname", type="string", length=255, nullable=false)
59
-     */
60
-    private $lastname;
61
-
62
-    /**
63
-     * @var string
64
-     *
65
-     * @ORM\Column(name="adress", type="string", length=255, nullable=true)
66
-     */
67
-    private $adress;
68
-
69
-    /**
70
-     * @var string
71
-     *
72
-     * @ORM\Column(name="postal_code", type="string", length=100, nullable=true)
73
-     */
74
-    private $postalCode;
75
-
76
-    /**
77
-     * @var string
78
-     *
79
-     * @ORM\Column(name="country", type="string", length=100, nullable=true)
80
-     */
81
-    private $country;
82
-
83
-    /**
84
-     * @var string
85
-     *
86
-     * @ORM\Column(name="state", type="string", length=255, nullable=true)
87
-     */
88
-    private $state;
89
-
90
-    /**
91
-     * @var string
92
-     *
93
-     * @ORM\Column(name="access_rights", type="text", nullable=true)
94
-     */
95
-    private $accessRights;
46
+				private $admin;
47
+
48
+				/**
49
+				 * @var string
50
+				 *
51
+				 * @ORM\Column(name="firstname", type="string", length=255, nullable=false)
52
+				 */
53
+				private $firstname;
54
+
55
+				/**
56
+				 * @var string
57
+				 *
58
+				 * @ORM\Column(name="lastname", type="string", length=255, nullable=false)
59
+				 */
60
+				private $lastname;
61
+
62
+				/**
63
+				 * @var string
64
+				 *
65
+				 * @ORM\Column(name="adress", type="string", length=255, nullable=true)
66
+				 */
67
+				private $adress;
68
+
69
+				/**
70
+				 * @var string
71
+				 *
72
+				 * @ORM\Column(name="postal_code", type="string", length=100, nullable=true)
73
+				 */
74
+				private $postalCode;
75
+
76
+				/**
77
+				 * @var string
78
+				 *
79
+				 * @ORM\Column(name="country", type="string", length=100, nullable=true)
80
+				 */
81
+				private $country;
82
+
83
+				/**
84
+				 * @var string
85
+				 *
86
+				 * @ORM\Column(name="state", type="string", length=255, nullable=true)
87
+				 */
88
+				private $state;
89
+
90
+				/**
91
+				 * @var string
92
+				 *
93
+				 * @ORM\Column(name="access_rights", type="text", nullable=true)
94
+				 */
95
+				private $accessRights;
96 96
 	
97 97
 	/**
98 98
 	 * @var boolean
@@ -101,59 +101,59 @@  discard block
 block discarded – undo
101 101
 	 */
102 102
 	private $archived = false;
103 103
 
104
-    /**
105
-     * @ORM\Column(name="created_at", type="datetime", nullable=true)
106
-     */
107
-    protected $created_at;
108
-
109
-    /**
110
-     * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User")
111
-     * @ORM\JoinColumn(name="created_by", referencedColumnName="id", nullable=false)
112
-     */
113
-    protected $created_by;
114
-
115
-    /**
116
-     * @ORM\Column(name="updated_at", type="datetime", nullable=true)
117
-     */
118
-    protected $updated_at;
119
-
120
-    /**
121
-     * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User")
122
-     * @ORM\JoinColumn(name="updated_by", referencedColumnName="id", nullable=false)
123
-     */
124
-    protected $updated_by;
125
-
126
-    /**
127
-     * @return int
128
-     */
129
-    public function getId()
130
-    {
131
-        return $this->id;
132
-    }
133
-
134
-    /**
135
-     * @param int $id
136
-     */
137
-    public function setId($id)
138
-    {
139
-        $this->id = $id;
140
-    }
141
-
142
-    /**
143
-     * @return string
144
-     */
145
-    public function getGuid()
146
-    {
147
-        return $this->guid;
148
-    }
149
-
150
-    /**
151
-     * @param string $guid
152
-     */
153
-    public function setGuid($guid)
154
-    {
155
-        $this->guid = $guid;
156
-    }
104
+				/**
105
+				 * @ORM\Column(name="created_at", type="datetime", nullable=true)
106
+				 */
107
+				protected $created_at;
108
+
109
+				/**
110
+				 * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User")
111
+				 * @ORM\JoinColumn(name="created_by", referencedColumnName="id", nullable=false)
112
+				 */
113
+				protected $created_by;
114
+
115
+				/**
116
+				 * @ORM\Column(name="updated_at", type="datetime", nullable=true)
117
+				 */
118
+				protected $updated_at;
119
+
120
+				/**
121
+				 * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User")
122
+				 * @ORM\JoinColumn(name="updated_by", referencedColumnName="id", nullable=false)
123
+				 */
124
+				protected $updated_by;
125
+
126
+				/**
127
+				 * @return int
128
+				 */
129
+				public function getId()
130
+				{
131
+								return $this->id;
132
+				}
133
+
134
+				/**
135
+				 * @param int $id
136
+				 */
137
+				public function setId($id)
138
+				{
139
+								$this->id = $id;
140
+				}
141
+
142
+				/**
143
+				 * @return string
144
+				 */
145
+				public function getGuid()
146
+				{
147
+								return $this->guid;
148
+				}
149
+
150
+				/**
151
+				 * @param string $guid
152
+				 */
153
+				public function setGuid($guid)
154
+				{
155
+								$this->guid = $guid;
156
+				}
157 157
 	
158 158
 	/**
159 159
 	 * @return AccessRight
@@ -187,117 +187,117 @@  discard block
 block discarded – undo
187 187
 		$this->admin = $admin;
188 188
 	}
189 189
 
190
-    /**
191
-     * @return string
192
-     */
193
-    public function getFirstname()
194
-    {
195
-        return $this->firstname;
196
-    }
197
-
198
-    /**
199
-     * @param string $firstname
200
-     */
201
-    public function setFirstname($firstname)
202
-    {
203
-        $this->firstname = $firstname;
204
-    }
205
-
206
-    /**
207
-     * @return string
208
-     */
209
-    public function getLastname()
210
-    {
211
-        return $this->lastname;
212
-    }
213
-
214
-    /**
215
-     * @param string $lastname
216
-     */
217
-    public function setLastname($lastname)
218
-    {
219
-        $this->lastname = $lastname;
220
-    }
221
-
222
-    /**
223
-     * @return string
224
-     */
225
-    public function getAdress()
226
-    {
227
-        return $this->adress;
228
-    }
229
-
230
-    /**
231
-     * @param string $adress
232
-     */
233
-    public function setAdress($adress)
234
-    {
235
-        $this->adress = $adress;
236
-    }
237
-
238
-    /**
239
-     * @return string
240
-     */
241
-    public function getPostalCode()
242
-    {
243
-        return $this->postalCode;
244
-    }
245
-
246
-    /**
247
-     * @param string $postalCode
248
-     */
249
-    public function setPostalCode($postalCode)
250
-    {
251
-        $this->postalCode = $postalCode;
252
-    }
253
-
254
-    /**
255
-     * @return string
256
-     */
257
-    public function getCountry()
258
-    {
259
-        return $this->country;
260
-    }
261
-
262
-    /**
263
-     * @param string $country
264
-     */
265
-    public function setCountry($country)
266
-    {
267
-        $this->country = $country;
268
-    }
269
-
270
-    /**
271
-     * @return string
272
-     */
273
-    public function getState()
274
-    {
275
-        return $this->state;
276
-    }
277
-
278
-    /**
279
-     * @param string $state
280
-     */
281
-    public function setState($state)
282
-    {
283
-        $this->state = $state;
284
-    }
285
-
286
-    /**
287
-     * @return string
288
-     */
289
-    public function getAccessRights()
290
-    {
291
-        return $this->accessRights;
292
-    }
293
-
294
-    /**
295
-     * @param string $accessRights
296
-     */
297
-    public function setAccessRights($accessRights)
298
-    {
299
-        $this->accessRights = $accessRights;
300
-    }
190
+				/**
191
+				 * @return string
192
+				 */
193
+				public function getFirstname()
194
+				{
195
+								return $this->firstname;
196
+				}
197
+
198
+				/**
199
+				 * @param string $firstname
200
+				 */
201
+				public function setFirstname($firstname)
202
+				{
203
+								$this->firstname = $firstname;
204
+				}
205
+
206
+				/**
207
+				 * @return string
208
+				 */
209
+				public function getLastname()
210
+				{
211
+								return $this->lastname;
212
+				}
213
+
214
+				/**
215
+				 * @param string $lastname
216
+				 */
217
+				public function setLastname($lastname)
218
+				{
219
+								$this->lastname = $lastname;
220
+				}
221
+
222
+				/**
223
+				 * @return string
224
+				 */
225
+				public function getAdress()
226
+				{
227
+								return $this->adress;
228
+				}
229
+
230
+				/**
231
+				 * @param string $adress
232
+				 */
233
+				public function setAdress($adress)
234
+				{
235
+								$this->adress = $adress;
236
+				}
237
+
238
+				/**
239
+				 * @return string
240
+				 */
241
+				public function getPostalCode()
242
+				{
243
+								return $this->postalCode;
244
+				}
245
+
246
+				/**
247
+				 * @param string $postalCode
248
+				 */
249
+				public function setPostalCode($postalCode)
250
+				{
251
+								$this->postalCode = $postalCode;
252
+				}
253
+
254
+				/**
255
+				 * @return string
256
+				 */
257
+				public function getCountry()
258
+				{
259
+								return $this->country;
260
+				}
261
+
262
+				/**
263
+				 * @param string $country
264
+				 */
265
+				public function setCountry($country)
266
+				{
267
+								$this->country = $country;
268
+				}
269
+
270
+				/**
271
+				 * @return string
272
+				 */
273
+				public function getState()
274
+				{
275
+								return $this->state;
276
+				}
277
+
278
+				/**
279
+				 * @param string $state
280
+				 */
281
+				public function setState($state)
282
+				{
283
+								$this->state = $state;
284
+				}
285
+
286
+				/**
287
+				 * @return string
288
+				 */
289
+				public function getAccessRights()
290
+				{
291
+								return $this->accessRights;
292
+				}
293
+
294
+				/**
295
+				 * @param string $accessRights
296
+				 */
297
+				public function setAccessRights($accessRights)
298
+				{
299
+								$this->accessRights = $accessRights;
300
+				}
301 301
 	
302 302
 	/**
303 303
 	 * @return boolean
@@ -315,82 +315,82 @@  discard block
 block discarded – undo
315 315
 		$this->archived = $archived;
316 316
 	}
317 317
 
318
-    /**
319
-     * @return mixed
320
-     */
321
-    public function getCreatedAt()
322
-    {
323
-        return $this->created_at;
324
-    }
325
-
326
-    /**
327
-     * @param mixed $created_at
328
-     * @return User
329
-     */
330
-    public function setCreatedAt($created_at): User
331
-    {
332
-        $this->created_at = $created_at;
333
-
334
-        return $this;
335
-    }
336
-
337
-    /**
338
-     * @return mixed
339
-     */
340
-    public function getCreatedBy()
341
-    {
342
-        return $this->created_by;
343
-    }
344
-
345
-    /**
346
-     * @ORM\PrePersist
347
-     * @param mixed $created_by
348
-     * @return User
349
-     */
350
-    public function setCreatedBy($created_by): User
351
-    {
352
-        $this->created_by = $created_by;
353
-
354
-        return $this;
355
-    }
356
-
357
-    /**
358
-     * @return mixed
359
-     */
360
-    public function getUpdatedAt()
361
-    {
362
-        return $this->updated_at;
363
-    }
364
-
365
-    /**
366
-     * @param mixed $updated_at
367
-     * @return User
368
-     */
369
-    public function setUpdatedAt($updated_at): User
370
-    {
371
-        $this->updated_at = $updated_at;
372
-
373
-        return $this;
374
-    }
375
-
376
-    /**
377
-     * @return mixed
378
-     */
379
-    public function getUpdatedBy()
380
-    {
381
-        return $this->updated_by;
382
-    }
383
-
384
-    /**
385
-     * @ORM\PreUpdate
386
-     * @param mixed $updated_by
387
-     * @return User
388
-     */
389
-    public function setUpdatedBy($updated_by): User
390
-    {
391
-        $this->updated_by = $updated_by;
392
-
393
-        return $this;
394
-    }
318
+				/**
319
+				 * @return mixed
320
+				 */
321
+				public function getCreatedAt()
322
+				{
323
+								return $this->created_at;
324
+				}
325
+
326
+				/**
327
+				 * @param mixed $created_at
328
+				 * @return User
329
+				 */
330
+				public function setCreatedAt($created_at): User
331
+				{
332
+								$this->created_at = $created_at;
333
+
334
+								return $this;
335
+				}
336
+
337
+				/**
338
+				 * @return mixed
339
+				 */
340
+				public function getCreatedBy()
341
+				{
342
+								return $this->created_by;
343
+				}
344
+
345
+				/**
346
+				 * @ORM\PrePersist
347
+				 * @param mixed $created_by
348
+				 * @return User
349
+				 */
350
+				public function setCreatedBy($created_by): User
351
+				{
352
+								$this->created_by = $created_by;
353
+
354
+								return $this;
355
+				}
356
+
357
+				/**
358
+				 * @return mixed
359
+				 */
360
+				public function getUpdatedAt()
361
+				{
362
+								return $this->updated_at;
363
+				}
364
+
365
+				/**
366
+				 * @param mixed $updated_at
367
+				 * @return User
368
+				 */
369
+				public function setUpdatedAt($updated_at): User
370
+				{
371
+								$this->updated_at = $updated_at;
372
+
373
+								return $this;
374
+				}
375
+
376
+				/**
377
+				 * @return mixed
378
+				 */
379
+				public function getUpdatedBy()
380
+				{
381
+								return $this->updated_by;
382
+				}
383
+
384
+				/**
385
+				 * @ORM\PreUpdate
386
+				 * @param mixed $updated_by
387
+				 * @return User
388
+				 */
389
+				public function setUpdatedBy($updated_by): User
390
+				{
391
+								$this->updated_by = $updated_by;
392
+
393
+								return $this;
394
+				}
395 395
 }
396 396
 
Please login to merge, or discard this patch.