| 1 | <?php namespace JobApis\JobsToMail\Console\Commands; |
||
| 8 | class EmailJobs extends Command |
||
| 9 | { |
||
| 10 | use DispatchesJobs; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The name and signature of the console command. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $signature = 'jobs:email {--email=}'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The console command description. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $description = 'Sends job listings for each search created by an active user.'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var SearchRepositoryInterface |
||
| 28 | */ |
||
| 29 | protected $searches; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Create a new command instance. |
||
| 33 | * |
||
| 34 | * @return void |
||
|
|
|||
| 35 | */ |
||
| 36 | public function __construct(SearchRepositoryInterface $searches) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Goes through each user and queues up a task to collect and email them their jobs. |
||
| 44 | * |
||
| 45 | * @return mixed |
||
| 46 | */ |
||
| 47 | public function handle() |
||
| 56 | } |
||
| 57 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.