@@ -14,11 +14,11 @@ final class User implements UserInterface, AdvancedUserInterface, AccountContain
1414 private $ credentialsNonExpired ;
1515 private $ accountNonLocked ;
1616 private $ roles ;
17-
17+
1818 private $ createdAt ;
1919 private $ lastSeenAt ;
2020 private $ deletedAt ;
21-
21+
2222 private $ accountUsers = array ();
2323 private $ policies = array ();
2424
@@ -37,42 +37,42 @@ public function __construct($name)
3737 $ this ->roles = array ();
3838 $ this ->salt = "KJH6212kjwek_fj23D01-239.1023fkjdsj^k2hdfssfjk!h234uiy4324 " ;
3939 }
40-
40+
4141 public function getCreatedAt ()
4242 {
4343 return $ this ->createdAt ;
4444 }
45-
45+
4646 public function setCreatedAt ($ createdAt )
4747 {
4848 $ this ->createdAt = $ createdAt ;
4949 return $ this ;
5050 }
51-
51+
5252 public function getDeletedAt ()
5353 {
5454 return $ this ->deletedAt ;
5555 }
56-
56+
5757 public function setDeletedAt ($ deletedAt )
5858 {
5959 $ this ->deletedAt = $ deletedAt ;
6060 return $ this ;
6161 }
62-
62+
6363 public function getLastSeenAt ()
6464 {
6565 return $ this ->lastSeenAt ;
6666 }
67-
67+
6868 public function setLastSeenAt ($ lastSeenAt )
6969 {
7070 if ($ this ->lastSeenAt >0 ) {
7171 $ this ->lastSeenAt = $ lastSeenAt ;
7272 }
7373 return $ this ;
7474 }
75-
75+
7676 /**
7777 * {@inheritdoc}
7878 */
@@ -88,7 +88,7 @@ public function getPassword()
8888 {
8989 return $ this ->password ;
9090 }
91-
91+
9292 public function setPassword ($ password )
9393 {
9494 $ this ->password = $ password ;
@@ -115,18 +115,18 @@ public function setUsername($username)
115115 $ this ->name = $ username ;
116116 return $ this ;
117117 }
118-
118+
119119 public function getName ()
120120 {
121121 return $ this ->name ;
122122 }
123-
123+
124124 public function getDisplayName ()
125125 {
126126 $ account = $ this ->getUserAccount ();
127127 return $ account ->getDisplayName ();
128128 }
129-
129+
130130 /**
131131 * {@inheritdoc}
132132 */
@@ -165,7 +165,7 @@ public function isEnabled()
165165 {
166166 return $ this ->enabled ;
167167 }
168-
168+
169169 public function setEnabled ($ enabled )
170170 {
171171 $ this ->enabled = $ enabled ;
@@ -178,12 +178,12 @@ public function setEnabled($enabled)
178178 public function eraseCredentials ()
179179 {
180180 }
181-
181+
182182 public function getEmail ()
183183 {
184184 return $ this ->getUserAccount ()->getEmail ();
185185 }
186-
186+
187187 public function getPictureUrl ($ size = null )
188188 {
189189 return $ this ->getUserAccount ()->getPictureUrl ($ size );
@@ -193,12 +193,12 @@ public function addAccountUser(AccountUser $accountUser)
193193 {
194194 $ this ->accountUsers [] = $ accountUser ;
195195 }
196-
196+
197197 public function getAccountUsers ()
198198 {
199199 return $ this ->accountUsers ;
200200 }
201-
201+
202202 public function getAccounts ()
203203 {
204204 $ accounts = array ();
@@ -207,7 +207,7 @@ public function getAccounts()
207207 }
208208 return $ accounts ;
209209 }
210-
210+
211211 public function getUserAccount ()
212212 {
213213 foreach ($ this ->getAccounts () as $ account ) {
@@ -217,7 +217,7 @@ public function getUserAccount()
217217 }
218218 throw new RuntimeException ("This user has no user-account: " . $ this ->getName ());
219219 }
220-
220+
221221 public function getAccountsByType ($ type )
222222 {
223223 $ res = array ();
@@ -228,17 +228,17 @@ public function getAccountsByType($type)
228228 }
229229 return $ res ;
230230 }
231-
231+
232232 public function addPolicy (Policy $ policy )
233233 {
234234 $ this ->policies [] = $ policy ;
235235 }
236-
236+
237237 public function getPolicies ()
238238 {
239239 return $ this ->policies ;
240240 }
241-
241+
242242 public function addRole ($ roleName )
243243 {
244244 $ this ->roles [] = $ roleName ;
0 commit comments