src/Rocketeer/Tasks/Closure.php
public function does($task)
    {
        // Store the original task before transformation
        $this->setStringTask($task);

        // Wrap string tasks
        if (is_string($task) || is_array($task)) {
            $task = $this->builder->wrapStringTasks($task);
        }

        $this->setClosure($task);

        return $this;
    }
public function does($task)
    {
        // Store the original task before transformation
        $this->setStringTask($task);

        // Wrap string tasks
        if (is_string($task) || is_array($task)) {
            $task = $this->builder->wrapStringTasks($task);
        }

        $this->setClosure($task);

        return $this;
    }
public function does ( $ task ) { // Store the original task before transformation $ this -> setStringTask ( $ task ) ; // Wrap string tasks if ( is_string ( $ task ) || is_array ( $ task ) ) { $ task = $ this -> builder -> wrapStringTasks ( $ task ) ; } $ this -> setClosure ( $ task ) ; return $ this ; }
Change what the task does.

@param string|array|callable $task

@return self
Change what the task does .