1 | <?php |
||
18 | final class User implements UserInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var \User\Repository\UserInterface |
||
22 | */ |
||
23 | private $users; |
||
24 | |||
25 | /** |
||
26 | * @var EntityManagerInterface |
||
27 | */ |
||
28 | private $em; |
||
29 | |||
30 | /** |
||
31 | * User Service Constructor. |
||
32 | * |
||
33 | * @param EntityManagerInterface $em |
||
34 | */ |
||
35 | public function __construct(EntityManagerInterface $em) |
||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | public function save(UserModel $user): UserModel |
||
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | public function delete(UserModel $user): UserModel |
||
77 | |||
78 | /** |
||
79 | * @inheritdoc |
||
80 | */ |
||
81 | public function findByUserId(int $id): UserModel |
||
85 | |||
86 | /** |
||
87 | * @inheritdoc |
||
88 | */ |
||
89 | public function listAll(): array |
||
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | */ |
||
99 | public function create(string $name, string $email): UserModel |
||
105 | |||
106 | /** |
||
107 | * @inheritdoc |
||
108 | */ |
||
109 | public function update(UserModel $user, string $name, string $email): UserModel |
||
116 | } |
||
117 |
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..