public function defineTask($taskName, $baseTask, $options)
    {
        $this->tasks['defined'][$taskName] = [
            'task' => $baseTask,
            'options' => $options
        ];
        return $this;
    }
public function defineTask($taskName, $baseTask, $options)
    {
        $this->tasks['defined'][$taskName] = [
            'task' => $baseTask,
            'options' => $options
        ];
        return $this;
    }
public function defineTask ( $ taskName , $ baseTask , $ options ) { $ this -> tasks [ 'defined' ] [ $ taskName ] = [ 'task' => $ baseTask , 'options' => $ options ] ; return $ this ; }
Define a new task based on an existing task by setting options

@param string $taskName
@param string $baseTask
@param array $options

@return \TYPO3\Surf\Domain\Model\Workflow
Define a new task based on an existing task by setting options