| 1 | <?php |
||
| 7 | final class UpdateUser |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var User |
||
| 11 | */ |
||
| 12 | private $user; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $username; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $password; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $displayName; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * UpdateUser constructor. |
||
| 31 | * |
||
| 32 | * @param UserInterface $user |
||
| 33 | * @param $username |
||
| 34 | * @param $password |
||
| 35 | * @param $displayName |
||
| 36 | */ |
||
| 37 | public function __construct(UserInterface $user, $username, $password, $displayName) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get the User. |
||
| 47 | * |
||
| 48 | * @return UserInterface |
||
| 49 | */ |
||
| 50 | public function getUser() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Get the username. |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function getUsername() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Get the password. |
||
| 67 | * |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | public function getPassword() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Get the displayName. |
||
| 77 | * |
||
| 78 | * @return string |
||
| 79 | */ |
||
| 80 | public function getDisplayName() |
||
| 84 | } |
||
| 85 |
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..