public function setIndentWidth($indentWidth)
    {
        if (!is_null($indentWidth) &&
            (!is_int($indentWidth) || $indentWidth < 1)
        ) {
            throw new \InvalidArgumentException(
                'indentWidth needs to be null or an integer above 0'
            );
        }

        $this->indentWidth = $indentWidth;

        return $this;
    }
public function setIndentWidth($indentWidth)
    {
        if (!is_null($indentWidth) &&
            (!is_int($indentWidth) || $indentWidth < 1)
        ) {
            throw new \InvalidArgumentException(
                'indentWidth needs to be null or an integer above 0'
            );
        }

        $this->indentWidth = $indentWidth;

        return $this;
    }
public function setIndentWidth ( $ indentWidth ) { if ( ! is_null ( $ indentWidth ) && ( ! is_int ( $ indentWidth ) || $ indentWidth < 1 ) ) { throw new \ InvalidArgumentException ( 'indentWidth needs to be null or an integer above 0' ) ; } $ this -> indentWidth = $ indentWidth ; return $ this ; }
Sets the currently used indentation width.

The value of this specifies if e.g. 2 spaces make up one indentation level or 4.

@param $indentWidth

@return $this
Sets the currently used indentation width .