\Phug\Lexer\PartialIndentStyleTrait

Summary

Methods
Properties
Constants
getIndentStyle()
setIndentStyle()
getIndentWidth()
setIndentWidth()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$indentStyle
$indentWidth
N/A

Properties

$indentStyle

$indentStyle : string

Contains the currently detected indentation style.

Type

string

$indentWidth

$indentWidth : integer

Contains the currently detected indentation width.

Type

integer

Methods

getIndentStyle()

getIndentStyle() : string

Returns the currently used indentation style.

Returns

string

setIndentStyle()

setIndentStyle(  $indentStyle) : $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.

Parameters

$indentStyle

Returns

$this

getIndentWidth()

getIndentWidth() : integer

Returns the currently used indentation width.

Returns

integer

setIndentWidth()

setIndentWidth(  $indentWidth) : $this

Sets the currently used indentation width.

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

Parameters

$indentWidth

Returns

$this