Methods |
public
|
__construct(string $contentType = ContentType::Html)
|
#
|
public
|
format(string $mask, mixed ...$args): string
Expands %node, %dump, %raw, %args, %line, %escape(), %modify(), %modifyContent() in code.
Expands %node, %dump, %raw, %args, %line, %escape(), %modify(), %modifyContent() in code.
|
#
|
public
|
beginEscape(): Escaper
|
#
|
public
|
restoreEscape(): void
|
#
|
public
|
getEscaper(): Escaper
|
#
|
public
|
addBlock(Block $block): void
|
#
|
public
|
generateId(): int
|
#
|
public
|
encodeString(string $str, string $quote = "'"): string
|
#
|
public
|
infixOp(Node $node, Node $leftNode, string $operatorString, Node $rightNode): string
Prints an infix operation while taking precedence into account.
Prints an infix operation while taking precedence into account.
|
#
|
public
|
prefixOp(Node $node, string $operatorString, Node $expr): string
Prints a prefix operation while taking precedence into account.
Prints a prefix operation while taking precedence into account.
|
#
|
public
|
postfixOp(Node $node, Node $var, string $operatorString): string
Prints a postfix operation while taking precedence into account.
Prints a postfix operation while taking precedence into account.
|
#
|
public
|
implode(array $nodes, string $glue = ', '): string
Prints an array of nodes and implodes the printed values with $glue
Prints an array of nodes and implodes the printed values with $glue
|
#
|
public
|
objectProperty(Node $node): string
|
#
|
public
|
memberAsString(Node $node): string
|
#
|
public
|
callExpr(Node $expr): string
Wraps the LHS of a call in parentheses if needed.
Wraps the LHS of a call in parentheses if needed.
|
#
|
public
|
dereferenceExpr(Node $expr): string
Wraps the LHS of a dereferencing operation in parentheses if needed.
Wraps the LHS of a dereferencing operation in parentheses if needed.
|
#
|
public
|
argumentsAsArray(ArgumentNode[] $args): string
|
#
|