public function addTask(Task $task)
    {
        if (!isset($this->tasks[$task->uniq])) {
            $this->tasks[$task->uniq] = $task;
            ++$this->tasksCount;
        }
    }
public function addTask(Task $task)
    {
        if (!isset($this->tasks[$task->uniq])) {
            $this->tasks[$task->uniq] = $task;
            ++$this->tasksCount;
        }
    }
public function addTask ( Task $ task ) { if ( ! isset ( $ this -> tasks [ $ task -> uniq ] ) ) { $ this -> tasks [ $ task -> uniq ] = $ task ; ++ $ this -> tasksCount ; } }
Add a task to the set.

@param Task $task Task to add to the set

@see \MHlavac\Gearman\Task, \MHlavac\Gearman\Set::$tasks
Add a task to the set .