lib/Kue/Scheduler.php
function every($interval, Job $job)
    {
        $expression = new SimpleExpression($interval);
        $this->add($expression, $job);

        return $this;
    }
function every($interval, Job $job)
    {
        $expression = new SimpleExpression($interval);
        $this->add($expression, $job);

        return $this;
    }
function every ( $ interval , Job $ job ) { $ expression = new SimpleExpression ( $ interval ) ; $ this -> add ( $ expression , $ job ) ; return $ this ; }
Adds the job to the scheduler.

@param int $interval Interval in seconds
@param Job $job

@return Scheduler
Adds the job to the scheduler .