implements |
Countable, IteratorAggregate |
|---|
Represents a node in the AST.
| Methods | ||
|---|---|---|
public
|
__construct(array $nodes = [], array $attributes = [], int $lineno = 0, string $tag = null)
|
# |
public
|
__toString()
|
# |
public
|
compile(Compiler $compiler): void
|
# |
public
|
getTemplateLine(): int
|
# |
public
|
getNodeTag(): ?string
|
# |
public
|
hasAttribute(string $name): bool
|
# |
public
|
getAttribute(string $name)
|
# |
public
|
setAttribute(string $name, $value): void
|
# |
public
|
removeAttribute(string $name): void
|
# |
public
|
hasNode(string $name): bool
|
# |
public
|
getNode(string $name): self
|
# |
public
|
setNode(string $name, self $node): void
|
# |
public
|
removeNode(string $name): void
|
# |
public
|
count(): int
|
# |
public
|
getIterator(): Traversable
|
# |
public
|
getTemplateName(): ?string
|
# |
public
|
setSourceContext(Source $source): void
|
# |
public
|
getSourceContext(): ?Source
|
# |
| Properties | |||
|---|---|---|---|
protected
|
|
$nodes
|
# |
protected
|
|
$attributes
|
# |
protected
|
|
$lineno
|
# |
protected
|
|
$tag
|
# |
private
|
|
$name
|
# |
private
|
|
$sourceContext
|
# |