Constants

DEFAULT_VARIABLES_VARIABLE_NAME

DEFAULT_VARIABLES_VARIABLE_NAME

Methods

__construct()

__construct(\Phug\Formatter  $formatter = null) 

Parameters

\Phug\Formatter $formatter

format()

format(  $element) 

Parameters

$element

formatCode()

formatCode(  $code,   $checked,   $noTransformation = false) 

Parameters

$code
$checked
$noTransformation

getDebugComment()

getDebugComment(  $nodeId) 

Parameters

$nodeId

setFormatter()

setFormatter(\Phug\Formatter  $formatter) 

Parameters

\Phug\Formatter $formatter

removeElementHandler()

removeElementHandler(  $className) 

Parameters

$className

setElementHandler()

setElementHandler(  $className, callable  $handler) 

Parameters

$className
callable $handler

removePhpTokenHandler()

removePhpTokenHandler(  $phpTokenId) 

Parameters

$phpTokenId

setPhpTokenHandler()

setPhpTokenHandler(  $phpTokenId,   $handler) 

Parameters

$phpTokenId
$handler

handleCode()

handleCode(  $phpCode) 

Parameters

$phpCode

formatAttributesList()

formatAttributesList(  $attributes) 

Parameters

$attributes