1 | <?php |
||
15 | class AdminUsersMapper extends AbstractTableGateway implements AdapterAwareInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $table = 'admin_users'; |
||
21 | |||
22 | /** |
||
23 | * Db adapter setter method,. |
||
24 | * |
||
25 | * @param Adapter $adapter db adapter |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | public function setDbAdapter(Adapter $adapter) |
||
33 | |||
34 | public function get($id) |
||
38 | |||
39 | /** |
||
40 | * Get admin user by email. |
||
41 | * |
||
42 | * @param string $email email |
||
43 | * |
||
44 | * @return array|\ArrayObject|null |
||
45 | */ |
||
46 | public function getByEmail(string $email) |
||
50 | |||
51 | /** |
||
52 | * Updates login data. |
||
53 | * |
||
54 | * @param string $uuid admin user id |
||
|
|||
55 | * |
||
56 | * @return int number of affected rows |
||
57 | */ |
||
58 | public function updateLogin(string $userId): int |
||
62 | |||
63 | public function getPaginationSelect($userId) |
||
71 | |||
72 | public function getRandom($limit) |
||
81 | |||
82 | public function getUuid($adminUserId) |
||
92 | } |
||
93 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.