class MacroSet implements Macro

Base Macro implementation. Allows add multiple macros.

Methods

__construct(Compiler $compiler)

No description

addMacro(string $name, $begin, $end = null, $attr = null, int $flags = null)

No description

void
initialize()

Initializes before template parsing.

array{string,
finalize()

Finishes template parsing.

bool|null
nodeOpened(MacroNode $node)

New node is found.

void
nodeClosed(MacroNode $node)

Node is closed.

getCompiler()

No description

void
checkExtraArgs(MacroNode $node)

No description

Details

at line 31
__construct(Compiler $compiler)

Parameters

Compiler $compiler

at line 42
MacroSet addMacro(string $name, $begin, $end = null, $attr = null, int $flags = null)

Parameters

string $name
$begin
$end
$attr
int $flags

Return Value

MacroSet

at line 63
void initialize()

Initializes before template parsing.

Return Value

void

at line 71
array{string, finalize()

Finishes template parsing.

Return Value

array{string, string}|array{string}|null (prolog, epilog)

at line 81
bool|null nodeOpened(MacroNode $node)

New node is found.

Parameters

MacroNode $node

Return Value

bool|null

at line 137
void nodeClosed(MacroNode $node)

Node is closed.

Parameters

MacroNode $node

Return Value

void

at line 163
Compiler getCompiler()

Return Value

Compiler

at line 170
protected void checkExtraArgs(MacroNode $node)

Parameters

MacroNode $node

Return Value

void

Traits

Better OOP experience.