public function orphan($newBranch = null)
    {
        $this->arguments[] = '--orphan';
        if ($newBranch) {
            $this->arguments[] = $newBranch;
        }
        return $this;
    }
public function orphan($newBranch = null)
    {
        $this->arguments[] = '--orphan';
        if ($newBranch) {
            $this->arguments[] = $newBranch;
        }
        return $this;
    }
public function orphan ( $ newBranch = null ) { $ this -> arguments [ ] = '--orphan' ; if ( $ newBranch ) { $ this -> arguments [ ] = $ newBranch ; } return $ this ; }
Add the orphan option to the command line.

@param null|string $newBranch The name of the new orphan branch.

@return CheckoutCommandBuilder
Add the orphan option to the command line .