1 | <?php namespace JobApis\JobsToMail\Jobs\Searches; |
||
5 | class GetUserSearches |
||
6 | { |
||
7 | /** |
||
8 | * @var string $userId |
||
9 | */ |
||
10 | protected $userId; |
||
11 | |||
12 | /** |
||
13 | * Create a new job instance. |
||
14 | */ |
||
15 | 1 | public function __construct($userId = null) |
|
19 | |||
20 | /** |
||
21 | * Get the searches belonging to this user |
||
22 | * |
||
23 | * @param SearchRepositoryInterface $searches |
||
24 | * |
||
25 | * @return \Illuminate\Database\Eloquent\Collection |
||
26 | */ |
||
27 | 1 | public function handle(SearchRepositoryInterface $searches) |
|
31 | } |
||
32 |