public static function getStatusObject($status, $message) { $js = new SchedulerJobStatus(); $js->setStatus($status); $js->setMessage($message); return $js; }
/** * Must return an object of type SchedulerJobStatus * @param $args * @return SchedulerJobStatus */ public function perform($args) { return SchedulerJobStatus::getStatusObject(SchedulerJobStatus::SCHEDULERJOB_STATUS_SUCCESS, "Dummy job - Successful"); }