public function add(AbstractTask $task)
    {
        $task->setRuntime($this->runtime);
        $this->registeredTasks[$task->getName()] = $task;
    }
public function add(AbstractTask $task)
    {
        $task->setRuntime($this->runtime);
        $this->registeredTasks[$task->getName()] = $task;
    }
public function add ( AbstractTask $ task ) { $ task -> setRuntime ( $ this -> runtime ) ; $ this -> registeredTasks [ $ task -> getName ( ) ] = $ task ; }
Add a Task

@param AbstractTask $task
Add a Task