1 | <?php namespace JobApis\JobsToMail\Repositories; |
||
5 | class SearchRepository implements Contracts\SearchRepositoryInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var Search model |
||
9 | */ |
||
10 | public $searches; |
||
11 | |||
12 | /** |
||
13 | * SearchRepository constructor. |
||
14 | * |
||
15 | * @param Search $model |
||
|
|||
16 | */ |
||
17 | 4 | public function __construct(Search $searches) |
|
21 | |||
22 | /** |
||
23 | * Create a single search for a user |
||
24 | * |
||
25 | * @param string $userId |
||
26 | * @param array $data |
||
27 | * |
||
28 | * @return Search |
||
29 | */ |
||
30 | 1 | public function create($userId = null, $data = []) |
|
36 | |||
37 | /** |
||
38 | * Get all active searches from confirmed users |
||
39 | * |
||
40 | * @param null | string $userEmail |
||
41 | * |
||
42 | * @return \Illuminate\Database\Eloquent\Collection |
||
43 | */ |
||
44 | 2 | public function getActive($userEmail = null) |
|
52 | } |
||
53 |
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.