class MacroSet implements Macro

Base Macro implementation. Allows add multiple macros.

Methods

__construct(Compiler $compiler)

No description

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

No description

void
initialize()

Initializes before template parsing.

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)

No description

Parameters

Compiler $compiler

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

No description

Parameters

string $name
string|callable|null $begin
string|callable|null $end
string|callable|null $attr
int $flags

Return Value

MacroSet

at line 63
void initialize()

Initializes before template parsing.

Return Value

void

at line 71
finalize()

Finishes template parsing.

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()

No description

Return Value

Compiler

at line 170
protected void checkExtraArgs(MacroNode $node)

internal  
 

No description

Parameters

MacroNode $node

Return Value

void

Traits

Better OOP experience.