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