public function setIndentStyle($indentStyle)
    {
        if (!in_array($indentStyle, [null, Lexer::INDENT_TAB, Lexer::INDENT_SPACE])) {
            throw new \InvalidArgumentException(
                'indentStyle needs to be null or one of the INDENT_* constants of the lexer'
            );
        }

        $this->indentStyle = $indentStyle;

        return $this;
    }
public function setIndentStyle($indentStyle)
    {
        if (!in_array($indentStyle, [null, Lexer::INDENT_TAB, Lexer::INDENT_SPACE])) {
            throw new \InvalidArgumentException(
                'indentStyle needs to be null or one of the INDENT_* constants of the lexer'
            );
        }

        $this->indentStyle = $indentStyle;

        return $this;
    }
public function setIndentStyle ( $ indentStyle ) { if ( ! in_array ( $ indentStyle , [ null , Lexer :: INDENT_TAB , Lexer :: INDENT_SPACE ] ) ) { throw new \ InvalidArgumentException ( 'indentStyle needs to be null or one of the INDENT_* constants of the lexer' ) ; } $ this -> indentStyle = $ indentStyle ; return $ this ; }
Sets the current indentation style to a new one.

The value needs to be one of the `Lexer::INDENT_*` constants, but you can also just
pass either a single space or a single tab for the respective style.

@param $indentStyle

@return $this
Sets the current indentation style to a new one .