public function addTask($tasks, $stage, Application $application = null)
    {
        $this->addTaskToStage($tasks, $stage, $application);

        return $this;
    }
public function addTask($tasks, $stage, Application $application = null)
    {
        $this->addTaskToStage($tasks, $stage, $application);

        return $this;
    }
public function addTask ( $ tasks , $ stage , Application $ application = null ) { $ this -> addTaskToStage ( $ tasks , $ stage , $ application ) ; return $ this ; }
Add the given tasks for a stage and optionally a specific application

The tasks will be executed for the given stage. If an application is given,
the tasks will be executed only for the stage and application.

@param array|string $tasks
@param string $stage The name of the stage when this task shall be executed
@param \TYPO3\Surf\Domain\Model\Application $application If given the task will be specific for this application

@return \TYPO3\Surf\Domain\Model\Workflow
Add the given tasks for a stage and optionally a specific application