1 | <?php |
||
15 | class User extends EventProvider |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @var UserMapperInterface |
||
20 | */ |
||
21 | protected $userMapper; |
||
22 | |||
23 | /** |
||
24 | * @var AuthenticationService |
||
25 | */ |
||
26 | protected $authService; |
||
27 | |||
28 | /** |
||
29 | * @var Form |
||
30 | */ |
||
31 | protected $loginForm; |
||
32 | |||
33 | /** |
||
34 | * @var Form |
||
35 | */ |
||
36 | protected $registerForm; |
||
37 | |||
38 | /** |
||
39 | * @var Form |
||
40 | */ |
||
41 | protected $changePasswordForm; |
||
42 | |||
43 | /** |
||
44 | * @var ServiceManager |
||
45 | */ |
||
46 | protected $serviceManager; |
||
47 | |||
48 | /** |
||
49 | * @var UserServiceOptionsInterface |
||
50 | */ |
||
51 | protected $options; |
||
52 | |||
53 | /** |
||
54 | * @var Hydrator\ClassMethods |
||
55 | */ |
||
56 | protected $formHydrator; |
||
57 | |||
58 | public function __construct( |
||
71 | |||
72 | /** |
||
73 | * createFromForm |
||
74 | * |
||
75 | * @param array $data |
||
76 | * @return \ZfcUser\Entity\UserInterface |
||
77 | * @throws Exception\InvalidArgumentException |
||
78 | */ |
||
79 | public function register(array $data) |
||
114 | |||
115 | /** |
||
116 | * change the current users password |
||
117 | * |
||
118 | * @param array $data |
||
119 | * @return boolean |
||
120 | */ |
||
121 | public function changePassword(array $data) |
||
144 | |||
145 | public function changeEmail(array $data) |
||
164 | |||
165 | /** |
||
166 | * getUserMapper |
||
167 | * |
||
168 | * @return UserMapperInterface |
||
169 | */ |
||
170 | public function getUserMapper() |
||
174 | |||
175 | /** |
||
176 | * getAuthService |
||
177 | * |
||
178 | * @return AuthenticationService |
||
179 | */ |
||
180 | public function getAuthService() |
||
184 | |||
185 | /** |
||
186 | * @return Form |
||
187 | */ |
||
188 | public function getRegisterForm() |
||
192 | |||
193 | /** |
||
194 | * @return Form |
||
195 | */ |
||
196 | public function getChangePasswordForm() |
||
200 | |||
201 | /** |
||
202 | * get service options |
||
203 | * |
||
204 | * @return UserServiceOptionsInterface |
||
205 | */ |
||
206 | public function getOptions() |
||
210 | |||
211 | /** |
||
212 | * Return the Form Hydrator |
||
213 | * |
||
214 | * @return \Zend\Stdlib\Hydrator\ClassMethods |
||
215 | */ |
||
216 | public function getFormHydrator() |
||
220 | } |
||
221 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.