class MacroNode

Macro element node.

Constants

PREFIX_INNER

PREFIX_TAG

PREFIX_NONE

Properties

Macro $macro
string $name
bool $empty
string $args
string $modifiers
bool $closing
bool $replaced
MacroTokens $tokenizer
MacroNode|null $parentNode
string $openingCode
string $closingCode
string $attrCode
string $content
string $innerContent
stdClass $data
HtmlNode|null $htmlNode
$context
string|null $prefix
int $startLine
int $endLine
$saved

Methods

__construct(Macro $macro, string $name, string $args = '', string $modifiers = '', MacroNode|null $parentNode = null, HtmlNode|null $htmlNode = null, string|null $prefix = null)

No description

void
setArgs(string $args)

No description

string
getNotation()

No description

MacroNode|null
closest(array $names, callable|null $condition = null)

No description

void
validate(string|bool|null $arguments, array $parents = [], bool $modifiers = false)

No description

Details

at line 89
__construct(Macro $macro, string $name, string $args = '', string $modifiers = '', MacroNode|null $parentNode = null, HtmlNode|null $htmlNode = null, string|null $prefix = null)

No description

Parameters

Macro $macro
string $name
string $args
string $modifiers
MacroNode|null $parentNode
HtmlNode|null $htmlNode
string|null $prefix

at line 109
void setArgs(string $args)

No description

Parameters

string $args

Return Value

void

at line 116
string getNotation()

No description

Return Value

string

at line 127
MacroNode|null closest(array $names, callable|null $condition = null)

No description

Parameters

array $names
callable|null $condition

Return Value

MacroNode|null

at line 146
void validate(string|bool|null $arguments, array $parents = [], bool $modifiers = false)

No description

Parameters

string|bool|null $arguments
array $parents
bool $modifiers

Return Value

void

Exceptions

CompileException

Traits

Better OOP experience.