Twig_Node_Expression_Test
extends TestExpression
in package
Abstract class for all nodes that represents an expression.
Tags
Table of Contents
- $attributes : mixed
- $lineno : mixed
- $nodes : mixed
- $tag : mixed
- $name : mixed
- $reflector : mixed
- $sourceContext : mixed
- __construct() : mixed
- __toString() : mixed
- compile() : mixed
- count() : int
- getAttribute() : mixed
- getIterator() : Traversable
- getNode() : Node
- getNodeTag() : mixed
- getSourceContext() : mixed
- getTemplateLine() : mixed
- getTemplateName() : mixed
- hasAttribute() : bool
- hasNode() : bool
- removeAttribute() : mixed
- removeNode() : mixed
- setAttribute() : mixed
- setNode() : mixed
- setSourceContext() : mixed
- setTemplateName() : mixed
- compileArguments() : mixed
- compileCallable() : mixed
- getArguments() : mixed
- normalizeName() : mixed
- getCallableParameters() : array<string|int, mixed>
- reflectCallable() : mixed
Properties
$attributes
protected
mixed
$attributes
$lineno
protected
mixed
$lineno
$nodes
protected
mixed
$nodes
$tag
protected
mixed
$tag
$name
private
mixed
$name
$reflector
private
mixed
$reflector
$sourceContext
private
mixed
$sourceContext
Methods
__construct()
public
__construct([array<string|int, mixed> $nodes = [] ][, array<string|int, mixed> $attributes = [] ], int $lineno[, string $tag = null ]) : mixed
Parameters
- $nodes : array<string|int, mixed> = []
-
An array of named nodes
- $attributes : array<string|int, mixed> = []
-
An array of attributes (should not be nodes)
- $lineno : int
-
The line number
- $tag : string = null
-
The tag name associated with the Node
Return values
mixed —__toString()
public
__toString() : mixed
Return values
mixed —compile()
public
compile(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —count()
public
count() : int
Return values
int —getAttribute()
public
getAttribute(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —getIterator()
public
getIterator() : Traversable
Return values
Traversable —getNode()
public
getNode(mixed $name) : Node
Parameters
- $name : mixed
Return values
Node —getNodeTag()
public
getNodeTag() : mixed
Return values
mixed —getSourceContext()
public
getSourceContext() : mixed
Return values
mixed —getTemplateLine()
public
getTemplateLine() : mixed
Return values
mixed —getTemplateName()
public
getTemplateName() : mixed
Return values
mixed —hasAttribute()
public
hasAttribute(mixed $name) : bool
Parameters
- $name : mixed
Return values
bool —hasNode()
public
hasNode(mixed $name) : bool
Parameters
- $name : mixed
Return values
bool —removeAttribute()
public
removeAttribute(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —removeNode()
public
removeNode(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —setAttribute()
public
setAttribute(string $name, mixed $value) : mixed
Parameters
- $name : string
- $value : mixed
Return values
mixed —setNode()
public
setNode(mixed $name, self $node) : mixed
Parameters
- $name : mixed
- $node : self
Return values
mixed —setSourceContext()
public
setSourceContext(Source $source) : mixed
Parameters
- $source : Source
Return values
mixed —setTemplateName()
public
setTemplateName(mixed $name) : mixed
Parameters
- $name : mixed
Tags
Return values
mixed —compileArguments()
protected
compileArguments(Compiler $compiler[, mixed $isArray = false ]) : mixed
Parameters
- $compiler : Compiler
- $isArray : mixed = false
Return values
mixed —compileCallable()
protected
compileCallable(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —getArguments()
protected
getArguments(mixed $callable, mixed $arguments) : mixed
Parameters
- $callable : mixed
- $arguments : mixed
Return values
mixed —normalizeName()
protected
normalizeName(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —getCallableParameters()
private
getCallableParameters(mixed $callable, bool $isVariadic) : array<string|int, mixed>
Parameters
- $callable : mixed
- $isVariadic : bool
Return values
array<string|int, mixed> —reflectCallable()
private
reflectCallable(mixed $callable) : mixed
Parameters
- $callable : mixed