src/Shell/Helper/CronHelper.php
public function addJob($job = []) {
        if(!isset($job['msg']))
            throw new RuntimeException('Job without a message');

        if(!isset($job['schedule']))
            throw new RuntimeException('Job without a CRON expression');

        if(!isset($job['function']))
            throw new RuntimeException('Job without a function');

        if($this->isDue($job['schedule']))
            $this->jobs[] = $job;
    }
public function addJob($job = []) {
        if(!isset($job['msg']))
            throw new RuntimeException('Job without a message');

        if(!isset($job['schedule']))
            throw new RuntimeException('Job without a CRON expression');

        if(!isset($job['function']))
            throw new RuntimeException('Job without a function');

        if($this->isDue($job['schedule']))
            $this->jobs[] = $job;
    }
public function addJob ( $ job = [ ] ) { if ( ! isset ( $ job [ 'msg' ] ) ) throw new RuntimeException ( 'Job without a message' ) ; if ( ! isset ( $ job [ 'schedule' ] ) ) throw new RuntimeException ( 'Job without a CRON expression' ) ; if ( ! isset ( $ job [ 'function' ] ) ) throw new RuntimeException ( 'Job without a function' ) ; if ( $ this -> isDue ( $ job [ 'schedule' ] ) ) $ this -> jobs [ ] = $ job ; }
Load the cron jobs that should be runned and register them into the
jobs array.
Load the cron jobs that should be runned and register them into the jobs array .