1 | <?php |
||
22 | class CouponRepositoryEloquent extends BaseRepository implements CouponRepository |
||
23 | { |
||
24 | /** |
||
25 | * Specify Model class name. |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | 4 | public function model() |
|
33 | |||
34 | /** |
||
35 | * @param $userId |
||
36 | * @param int $paginate |
||
37 | * @param string $channel |
||
|
|||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | 4 | public function findActiveByUser($userId, $paginate = 15) |
|
66 | |||
67 | /** |
||
68 | * @param $userId |
||
69 | * @param int $paginate |
||
70 | * |
||
71 | * @return mixed |
||
72 | */ |
||
73 | 1 | public function findInvalidByUser($userId, $paginate = 15) |
|
88 | |||
89 | /** |
||
90 | * 获取已使用的优惠券. |
||
91 | * |
||
92 | * @param $userId |
||
93 | * @param int $paginate |
||
94 | * |
||
95 | * @return mixed |
||
96 | */ |
||
97 | 1 | public function findUsedByUser($userId, $paginate = 15) |
|
103 | } |
||
104 |
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.