1 | <?php namespace Usman\Guardian\Http\Controllers; |
||
11 | class Users extends Base { |
||
12 | |||
13 | /** |
||
14 | * The repository instance |
||
15 | * |
||
16 | * @var Usman\Guardian\Repositories\UserRepository |
||
17 | */ |
||
18 | protected $user; |
||
19 | |||
20 | /** |
||
21 | * The validator instance |
||
22 | * |
||
23 | * @var Usman\Guardian\Validators\UserValidator |
||
24 | */ |
||
25 | protected $validator; |
||
26 | |||
27 | /** |
||
28 | * Creates a new User controller |
||
29 | * |
||
30 | * @param UserRepositoryInterface $user |
||
31 | * @param UserValidator $validator |
||
32 | */ |
||
33 | public function __construct(UserRepositoryInterface $user, UserValidator $validator) |
||
38 | |||
39 | /** |
||
40 | * Lists ths users. |
||
41 | * |
||
42 | * @return Response |
||
43 | */ |
||
44 | public function listUser() |
||
61 | |||
62 | /** |
||
63 | * Shows the add user form |
||
64 | * |
||
65 | * @return Response |
||
66 | */ |
||
67 | public function addUser() |
||
71 | |||
72 | /** |
||
73 | * Saves the new user in the database. |
||
74 | * |
||
75 | * @return Response |
||
76 | */ |
||
77 | public function createUser() |
||
96 | |||
97 | /** |
||
98 | * Shows the user edit form. |
||
99 | * |
||
100 | * @param int $id |
||
101 | * @return Response |
||
102 | */ |
||
103 | public function editUser($id) |
||
108 | |||
109 | /** |
||
110 | * Updates the database record for the user. |
||
111 | * |
||
112 | * @param int $id |
||
113 | * @return Response |
||
114 | */ |
||
115 | public function updateUser($id) |
||
132 | |||
133 | /** |
||
134 | * Deletes a user from the database. |
||
135 | * |
||
136 | * @param int $id |
||
137 | * @return Response |
||
138 | */ |
||
139 | public function deleteUser($id) |
||
144 | |||
145 | } |
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..