TestExpression
extends CallExpression
in package
Abstract class for all nodes that represents an expression.
Table of Contents
- $attributes : mixed
- $lineno : mixed
- $nodes : mixed
- $tag : mixed
- $name : mixed
- $reflector : mixed
- $sourceContext : mixed
- __construct() : mixed
- __toString() : mixed
- compile() : void
- count() : int
- getAttribute() : mixed
- getIterator() : Traversable
- getNode() : self
- getNodeTag() : string|null
- getSourceContext() : Source|null
- getTemplateLine() : int
- getTemplateName() : string|null
- hasAttribute() : bool
- hasNode() : bool
- removeAttribute() : void
- removeNode() : void
- setAttribute() : void
- setNode() : void
- setSourceContext() : void
- compileArguments() : void
- compileCallable() : mixed
- getArguments() : mixed
- normalizeName() : string
- 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(Node $node, string $name, Node|null $arguments, int $lineno) : mixed
Parameters
Return values
mixed —__toString()
public
__toString() : mixed
Return values
mixed —compile()
public
compile(Compiler $compiler) : void
Parameters
- $compiler : Compiler
Return values
void —count()
public
count() : int
Return values
int —getAttribute()
public
getAttribute(string $name) : mixed
Parameters
- $name : string
Return values
mixed —getIterator()
public
getIterator() : Traversable
Return values
Traversable —getNode()
public
getNode(string $name) : self
Parameters
- $name : string
Return values
self —getNodeTag()
public
getNodeTag() : string|null
Return values
string|null —getSourceContext()
public
getSourceContext() : Source|null
Return values
Source|null —getTemplateLine()
public
getTemplateLine() : int
Return values
int —getTemplateName()
public
getTemplateName() : string|null
Return values
string|null —hasAttribute()
public
hasAttribute(string $name) : bool
Parameters
- $name : string
Return values
bool —hasNode()
public
hasNode(string $name) : bool
Parameters
- $name : string
Return values
bool —removeAttribute()
public
removeAttribute(string $name) : void
Parameters
- $name : string
Return values
void —removeNode()
public
removeNode(string $name) : void
Parameters
- $name : string
Return values
void —setAttribute()
public
setAttribute(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
Return values
void —setNode()
public
setNode(string $name, self $node) : void
Parameters
- $name : string
- $node : self
Return values
void —setSourceContext()
public
setSourceContext(Source $source) : void
Parameters
- $source : Source
Return values
void —compileArguments()
protected
compileArguments(Compiler $compiler[, mixed $isArray = false ]) : void
Parameters
- $compiler : Compiler
- $isArray : mixed = false
Return values
void —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(string $name) : string
Parameters
- $name : string
Return values
string —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