File tree Expand file tree Collapse file tree 1 file changed +13
-19
lines changed
Tests/Authentication/Token/Fixtures Expand file tree Collapse file tree 1 file changed +13
-19
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <[email protected] >
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
3
12
namespace Symfony \Component \Security \Core \Tests \Authentication \Token \Fixtures ;
4
13
5
14
use Symfony \Component \Security \Core \User \UserInterface ;
6
15
7
16
final class CustomUser implements UserInterface
8
17
{
9
- /** @var string */
10
- private $ username ;
11
- /** @var array */
12
- private $ roles ;
13
-
14
- public function __construct (string $ username , array $ roles )
15
- {
16
- $ this ->username = $ username ;
17
- $ this ->roles = $ roles ;
18
+ public function __construct (
19
+ private string $ username ,
20
+ private array $ roles ,
21
+ ) {
18
22
}
19
23
20
24
public function getUserIdentifier (): string
@@ -27,16 +31,6 @@ public function getRoles(): array
27
31
return $ this ->roles ;
28
32
}
29
33
30
- public function getPassword (): ?string
31
- {
32
- return null ;
33
- }
34
-
35
- public function getSalt (): ?string
36
- {
37
- return null ;
38
- }
39
-
40
34
public function eraseCredentials (): void
41
35
{
42
36
}
You can’t perform that action at this time.
0 commit comments