ArrayExpression
extends AbstractExpression
in package
Abstract class for all nodes that represents an expression.
Table of Contents
Properties
- $attributes : mixed
- $lineno : mixed
- $nodes : mixed
- $tag : mixed
- $index : mixed
- $sourceContext : mixed
Methods
- __construct() : mixed
- __toString() : mixed
- addElement() : void
- compile() : void
- count() : int
- getAttribute() : mixed
- getIterator() : Traversable
- getKeyValuePairs() : array<string|int, mixed>
- getNode() : self
- getNodeTag() : string|null
- getSourceContext() : Source|null
- getTemplateLine() : int
- getTemplateName() : string|null
- hasAttribute() : bool
- hasElement() : bool
- hasNode() : bool
- removeAttribute() : void
- removeNode() : void
- setAttribute() : void
- setNode() : void
- setSourceContext() : void
- hasSpreadItem() : bool
Properties
$attributes
protected
mixed
$attributes
$lineno
protected
mixed
$lineno
$nodes
protected
mixed
$nodes
$tag
protected
mixed
$tag
$index
private
mixed
$index
$sourceContext
private
mixed
$sourceContext
Methods
__construct()
public
__construct(array<string|int, mixed> $elements, int $lineno) : mixed
Parameters
- $elements : array<string|int, mixed>
- $lineno : int
-
The line number
__toString()
public
__toString() : mixed
addElement()
public
addElement(AbstractExpression $value[, AbstractExpression|null $key = null ]) : void
Parameters
- $value : AbstractExpression
- $key : AbstractExpression|null = null
compile()
public
compile(Compiler $compiler) : void
Parameters
- $compiler : Compiler
count()
public
count() : int
Attributes
Return values
intgetAttribute()
public
getAttribute(string $name) : mixed
Parameters
- $name : string
getIterator()
public
getIterator() : Traversable
Return values
TraversablegetKeyValuePairs()
public
getKeyValuePairs() : array<string|int, mixed>
Return values
array<string|int, mixed>getNode()
public
getNode(string $name) : self
Parameters
- $name : string
Return values
selfgetNodeTag()
public
getNodeTag() : string|null
Return values
string|nullgetSourceContext()
public
getSourceContext() : Source|null
Return values
Source|nullgetTemplateLine()
public
getTemplateLine() : int
Return values
intgetTemplateName()
public
getTemplateName() : string|null
Return values
string|nullhasAttribute()
public
hasAttribute(string $name) : bool
Parameters
- $name : string
Return values
boolhasElement()
public
hasElement(AbstractExpression $key) : bool
Parameters
- $key : AbstractExpression
Return values
boolhasNode()
public
hasNode(string $name) : bool
Parameters
- $name : string
Return values
boolremoveAttribute()
public
removeAttribute(string $name) : void
Parameters
- $name : string
removeNode()
public
removeNode(string $name) : void
Parameters
- $name : string
setAttribute()
public
setAttribute(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
setNode()
public
setNode(string $name, self $node) : void
Parameters
- $name : string
- $node : self
setSourceContext()
public
setSourceContext(Source $source) : void
Parameters
- $source : Source
hasSpreadItem()
private
hasSpreadItem(array<string|int, mixed> $pairs) : bool
Parameters
- $pairs : array<string|int, mixed>