public function addFunction(callable $fn, $args = [], $id = null)
    {
        $job = new Job($fn, $args, $id);
        $this->queueJob($job->configure($this->config));

        return $job;
    }
public function addFunction(callable $fn, $args = [], $id = null)
    {
        $job = new Job($fn, $args, $id);
        $this->queueJob($job->configure($this->config));

        return $job;
    }
public function addFunction ( callable $ fn , $ args = [ ] , $ id = null ) { $ job = new Job ( $ fn , $ args , $ id ) ; $ this -> queueJob ( $ job -> configure ( $ this -> config ) ) ; return $ job ; }
Queues a PHP function execution.

@param  callable  $fn  The function to execute
@param  array  $args  Optional arguments to pass to the php script
@param  string  $id   Optional custom identifier
@return Job
Queues a PHP function execution .