Service/GearmanClient.php
protected function enqueueTask($name, $params, &$context, $unique, $method)
    {
        $contextReference = array('context' => &$context);
        $task = array(
            'name'    => $name,
            'params'  => $params,
            'context' => $contextReference,
            'unique'  => $this->uniqueJobIdentifierGenerator->generateUniqueKey($name, $params, $unique, $method),
            'method'  => $method,
        );

        $this->addTaskToStructure($task);

        return $this;
    }
protected function enqueueTask($name, $params, &$context, $unique, $method)
    {
        $contextReference = array('context' => &$context);
        $task = array(
            'name'    => $name,
            'params'  => $params,
            'context' => $contextReference,
            'unique'  => $this->uniqueJobIdentifierGenerator->generateUniqueKey($name, $params, $unique, $method),
            'method'  => $method,
        );

        $this->addTaskToStructure($task);

        return $this;
    }
protected function enqueueTask ( $ name , $ params , & $ context , $ unique , $ method ) { $ contextReference = array ( 'context' => & $ context ) ; $ task = array ( 'name' => $ name , 'params' => $ params , 'context' => $ contextReference , 'unique' => $ this -> uniqueJobIdentifierGenerator -> generateUniqueKey ( $ name , $ params , $ unique , $ method ) , 'method' => $ method , ) ; $ this -> addTaskToStructure ( $ task ) ; return $ this ; }
Adds a task into the structure of tasks with included type of call

@param string $name    A GermanBundle registered function to be executed
@param string $params  Parameters to send to task as string
@param Mixed  $context Application context to associate with a task
@param string $unique  A unique ID used to identify a particular task
@param string $method  Method to perform

@return GearmanClient Return this object
Adds a task into the structure of tasks with included type of call