Documentation

Formatter
in package

Base formatter

Tags
author

Leaf Corcoran leafot@gmail.com

Table of Contents

$assignSeparator  : string
$break  : string
$close  : string
$indentChar  : string
$indentLevel  : int
$keepSemicolons  : bool
$open  : string
$tagSeparator  : string
$currentBlock  : OutputBlock
$currentColumn  : int
$currentLine  : int
$sourceMapGenerator  : SourceMapGenerator
__construct()  : mixed
Initialize formatter
format()  : string
Entry point to formatting a block
property()  : string
Return property assignment
stripSemicolon()  : mixed
Strip semi-colon appended by property(); it's a separator, not a terminator
block()  : mixed
Output non-empty block
blockChildren()  : mixed
Output block children
blockLines()  : mixed
Output lines inside a block
blockSelectors()  : mixed
Output block selectors
indentStr()  : string
Return indentation (whitespace)
write()  : mixed

Properties

$assignSeparator

public string $assignSeparator

Methods

__construct()

Initialize formatter

public abstract __construct() : mixed
Return values
mixed

property()

Return property assignment

public property(string $name, mixed $value) : string
Parameters
$name : string
$value : mixed
Return values
string

stripSemicolon()

Strip semi-colon appended by property(); it's a separator, not a terminator

public stripSemicolon(array<string|int, mixed> &$lines) : mixed
Parameters
$lines : array<string|int, mixed>
Return values
mixed

indentStr()

Return indentation (whitespace)

protected indentStr() : string
Return values
string

write()

protected write(string $str) : mixed
Parameters
$str : string
Return values
mixed

Search results