1 | <?php |
||
17 | class UpdateDuty extends Command |
||
18 | { |
||
19 | /** |
||
20 | * The name and signature of the console command. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $signature = 'duty:update'; |
||
25 | |||
26 | /** |
||
27 | * The console command description. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $description = 'Updates the duty roster and sends out email notifications to users.'; |
||
32 | |||
33 | /** |
||
34 | * Execute the console command. |
||
35 | * |
||
36 | * @return UpdateDuty |
||
37 | */ |
||
38 | public function handle() |
||
48 | |||
49 | private function processEmailList($emailList, $duty) |
||
63 | |||
64 | /** |
||
65 | * @param $duty |
||
66 | * @param $usersDateArray |
||
67 | * |
||
68 | * @return bool |
||
69 | */ |
||
70 | private function isReadyForNotification($duty, $usersDateArray) |
||
75 | |||
76 | /** |
||
77 | * @param $duty |
||
78 | * @param $usersDateArray |
||
79 | * |
||
80 | * @return UpdateDuty |
||
81 | */ |
||
82 | private function sendUsersUpcomingEmailNotification($duty, $usersDateArray) |
||
90 | } |
||
91 |