public function addJob(JobInterface $job)
    {
        $date = $job->getDateLastRun();
        if (null === $date || (int) $date->getTimestamp() + (int) $job->getRunTime() <= time()) {
            $this->getJobs()->append($job);
        }

        return $this;
    }
public function addJob(JobInterface $job)
    {
        $date = $job->getDateLastRun();
        if (null === $date || (int) $date->getTimestamp() + (int) $job->getRunTime() <= time()) {
            $this->getJobs()->append($job);
        }

        return $this;
    }
public function addJob ( JobInterface $ job ) { $ date = $ job -> getDateLastRun ( ) ; if ( null === $ date || ( int ) $ date -> getTimestamp ( ) + ( int ) $ job -> getRunTime ( ) <= time ( ) ) { $ this -> getJobs ( ) -> append ( $ job ) ; } return $ this ; }
Add job to collection of execute cron jobs

@param \Extlib\Cron\Adapter\Job\JobInterface $job
@return \Extlib\Cron
Add job to collection of execute cron jobs