1 | <?php |
||
17 | class SendReminders extends Command |
||
18 | { |
||
19 | /** |
||
20 | * The name and signature of the console command. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $signature = 'emails:reminders'; |
||
25 | |||
26 | /** |
||
27 | * The console command description. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $description = 'Sends out email reminders a week before they are due.'; |
||
32 | |||
33 | /** |
||
34 | * @var |
||
35 | */ |
||
36 | protected $trainingUsers; |
||
37 | |||
38 | /** |
||
39 | * Execute the console command. |
||
40 | * Sends out reminder emails to all employees. Then sends a reminder to their supervisor. |
||
41 | * |
||
42 | * @return SendReminders |
||
43 | */ |
||
44 | 4 | public function handle() |
|
56 | |||
57 | /** |
||
58 | * Email the employee's supervisor if a user has training that isn't complete yet. |
||
59 | */ |
||
60 | 4 | public function emailSupervisor() |
|
78 | |||
79 | /** |
||
80 | * Stores a list of incomplete training. |
||
81 | */ |
||
82 | 4 | public function setTrainingUsers() |
|
95 | |||
96 | /** |
||
97 | * Get our Notes list. |
||
98 | * |
||
99 | * @return mixed |
||
100 | */ |
||
101 | 1 | public function getList() |
|
105 | |||
106 | /** |
||
107 | * Take a list of notes and return a list of supervisors related to those notes. |
||
108 | * |
||
109 | * @return Collection |
||
110 | */ |
||
111 | 4 | private function getSupervisors() |
|
122 | } |
||
123 |