1 | <?php namespace JobApis\JobsToMail\Console\Commands; |
||
8 | class DeleteNotifications 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 = 'notifications:delete {--id=}'; |
||
18 | |||
19 | /** |
||
20 | * The console command description. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $description = 'Removes old notifications from the database.'; |
||
25 | |||
26 | /** |
||
27 | * @var CustomDatabaseNotification |
||
28 | */ |
||
29 | public $notifications; |
||
30 | |||
31 | /** |
||
32 | * Create a new command instance. |
||
33 | * |
||
34 | * @return void |
||
|
|||
35 | */ |
||
36 | public function __construct(CustomDatabaseNotification $notifications) |
||
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() |
||
64 | } |
||
65 |
Adding a
@return
annotation 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.