1 | <?php |
||
20 | class BaseUser implements User, Serializable, EquatableInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var int |
||
24 | * |
||
25 | * @ORM\Column(type="integer") |
||
26 | * @ORM\Id |
||
27 | * @ORM\GeneratedValue |
||
28 | */ |
||
29 | protected $id; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * |
||
34 | * @ORM\Column(type="string") |
||
35 | */ |
||
36 | protected $username; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | * |
||
41 | * @ORM\Column(type="string") |
||
42 | */ |
||
43 | protected $password; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | * |
||
48 | * @ORM\Column(type="string") |
||
49 | */ |
||
50 | protected $salt; |
||
51 | |||
52 | /** |
||
53 | * @var string |
||
54 | * |
||
55 | * @ORM\Column(type="string") |
||
56 | */ |
||
57 | protected $displayName; |
||
58 | |||
59 | /** |
||
60 | * @var PasswordResetToken |
||
61 | * |
||
62 | * @ORM\Column(type="string", nullable=true) |
||
63 | */ |
||
64 | protected $passwordResetToken; |
||
65 | |||
66 | /** |
||
67 | * @var string |
||
68 | * |
||
69 | * @ORM\Column(type="string") |
||
70 | */ |
||
71 | protected $email; |
||
72 | |||
73 | /** |
||
74 | * @var Status |
||
75 | * |
||
76 | * @ORM\Column(type="user_status") |
||
77 | */ |
||
78 | protected $status; |
||
79 | |||
80 | /** |
||
81 | * @var string |
||
82 | */ |
||
83 | protected $plainPassword; |
||
84 | |||
85 | /** |
||
86 | * @param string $username |
||
87 | * @param string $plainPassword |
||
88 | * @param string $displayName |
||
89 | * @param string $email |
||
90 | * @param int $id |
||
91 | * @param PasswordResetToken $token |
||
92 | */ |
||
93 | public function __construct( |
||
114 | |||
115 | public function getRoles(): array |
||
119 | |||
120 | public function getPassword(): string |
||
124 | |||
125 | public function getSalt(): string |
||
129 | |||
130 | public function encodePassword(PasswordEncoderInterface $encoder): void |
||
143 | |||
144 | public function getUsername(): string |
||
148 | |||
149 | public function eraseCredentials(): void |
||
153 | |||
154 | public function getDisplayName(): string |
||
158 | |||
159 | public function __toString(): string |
||
163 | |||
164 | public function clearPasswordResetToken(): self |
||
170 | |||
171 | public function generatePasswordResetToken(): self |
||
177 | |||
178 | public function getPasswordResetToken(): ?PasswordResetToken |
||
182 | |||
183 | public function getEmail(): string |
||
187 | |||
188 | public function setPassword(string $password): self |
||
194 | |||
195 | public function getId(): int |
||
199 | |||
200 | public function hasPlainPassword(): bool |
||
204 | |||
205 | public function getPlainPassword(): string |
||
209 | |||
210 | public function change(UserDataTransferObject $data): void |
||
217 | |||
218 | public function toggleBlock(): void |
||
228 | |||
229 | public function isBlocked(): bool |
||
233 | |||
234 | public function canSwitchTo(BaseUser $user): bool |
||
238 | |||
239 | public function serialize(): string |
||
250 | |||
251 | public function unserialize($serialized): void |
||
255 | |||
256 | public function isEqualTo(UserInterface $user): bool |
||
260 | } |
||
261 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..