\Phug\Lexer\ScannerIndentationScanner

Summary

Methods
Properties
Constants
getIndentLevel()
scan()
No public properties found
No constants found
getLevelFromIndent()
getIndentChar()
formatIndentChar()
setStateLevel()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getIndentLevel()

getIndentLevel(\Phug\Lexer\State  $state,   $maxLevel = INF, callable  $getIndentChar = null) 

Parameters

\Phug\Lexer\State $state
$maxLevel
callable $getIndentChar

getLevelFromIndent()

getLevelFromIndent(\Phug\Lexer\State  $state,   $indent) 

Parameters

\Phug\Lexer\State $state
$indent

getIndentChar()

getIndentChar(\Phug\Reader  $reader) 

Parameters

\Phug\Reader $reader

formatIndentChar()

formatIndentChar(\Phug\Lexer\State  $state,   $indentChar) 

Parameters

\Phug\Lexer\State $state
$indentChar

setStateLevel()

setStateLevel(\Phug\Lexer\State  $state,   $indent) 

Parameters

\Phug\Lexer\State $state
$indent