original_string: public function addTask(Task $task)
      {
          if (!isset($this->tasks[$task->uniq])) {
              $this->tasks[$task->uniq] = $task;
              ++$this->tasksCount;
          }
      }
code: public function addTask(Task $task)
      {
          if (!isset($this->tasks[$task->uniq])) {
              $this->tasks[$task->uniq] = $task;
              ++$this->tasksCount;
          }
      }
code_tokens: public function addTask ( Task $ task ) { if ( ! isset ( $ this -> tasks [ $ task -> uniq ] ) ) { $ this -> tasks [ $ task -> uniq ] = $ task ; ++ $ this -> tasksCount ; } }
docstring: Add a task to the set.
  
  @param Task $task Task to add to the set
  
  @see \MHlavac\Gearman\Task, \MHlavac\Gearman\Set::$tasks
docstring_tokens: Add a task to the set .