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|null $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|null $flags = null)

No description

Parameters

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

Return Value

MacroSet

at line 64
void initialize()

Initializes before template parsing.

Return Value

void

at line 72
finalize()

Finishes template parsing.

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

New node is found.

Parameters

MacroNode $node

Return Value

bool|null

at line 139
void nodeClosed(MacroNode $node)

Node is closed.

Parameters

MacroNode $node

Return Value

void

at line 165
Compiler getCompiler()

No description

Return Value

Compiler

at line 172
protected void checkExtraArgs(MacroNode $node)

internal  
 

No description

Parameters

MacroNode $node

Return Value

void

Traits

Better OOP experience.