1 | <?php |
||
11 | abstract class Profile |
||
12 | { |
||
13 | use IdentityTrait; |
||
14 | |||
15 | /** |
||
16 | * Utilisateur associé au profil |
||
17 | * |
||
18 | * @var SDIS62\Core\User\Entity\User |
||
19 | */ |
||
20 | protected $user; |
||
21 | |||
22 | /** |
||
23 | * Type du profil |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $phone_number; |
||
28 | |||
29 | /* |
||
30 | * Constructeur |
||
31 | * |
||
32 | * @param SDIS62\Core\User\Entity\User $user |
||
33 | */ |
||
34 | 126 | public function __construct(User $user) |
|
40 | |||
41 | /** |
||
42 | * Get the value of Type du profil |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | 15 | final public function getType() |
|
54 | |||
55 | /** |
||
56 | * Get the value of Numéro de téléphone concernant le profil |
||
57 | * |
||
58 | * @return \DateTime|null |
||
59 | */ |
||
60 | 3 | public function getPhoneNumber() |
|
64 | |||
65 | /** |
||
66 | * Set the value of Numéro de téléphone concernant le profil |
||
67 | * |
||
68 | * @param string|null professional_phone_number |
||
69 | * @throws InvalidPhoneNumberException |
||
70 | * |
||
71 | * @return self |
||
72 | */ |
||
73 | 6 | public function setPhoneNumber($phone_number) |
|
86 | |||
87 | /** |
||
88 | * Get the value of Utilisateur associé au profil |
||
89 | * |
||
90 | * @return SDIS62\Core\User\Entity\User |
||
91 | */ |
||
92 | 21 | public function getUser() |
|
96 | } |
||
97 |
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..