scheduler->template)) { $this->{$this->scheduler->template}(); } } private function email_record() { (new EmailRecord($this->scheduler))->run(); } private function email_statement() { (new EmailStatementService($this->scheduler))->run(); } private function email_report() { (new EmailReport($this->scheduler))->run(); } private function invoice_outstanding_tasks() { (new InvoiceOutstandingTasksService($this->scheduler))->run(); } private function payment_schedule() { (new PaymentSchedule($this->scheduler))->run(); } /** * Sets the next run date of the scheduled task * */ //handle when the scheduler has been paused. }