summaryrefslogtreecommitdiff
path: root/src/ste/VariableNode.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/ste/VariableNode.php')
-rw-r--r--src/ste/VariableNode.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/ste/VariableNode.php b/src/ste/VariableNode.php
index f5a0b26..cdffc3f 100644
--- a/src/ste/VariableNode.php
+++ b/src/ste/VariableNode.php
@@ -8,7 +8,21 @@ class VariableNode extends ASTNode
public $name;
/** @var ASTNode[][] */
- public $arrayfields = [];
+ public $arrayfields;
+
+ /**
+ * @param string $tpl
+ * @param int $off
+ * @param string $name
+ * @param ASTNode[][] $arrayfields
+ */
+ public function __construct(string $tpl, int $off, string $name, array $arrayfields)
+ {
+ parent::__construct($tpl, $off);
+
+ $this->name = $name;
+ $this->arrayfields = $arrayfields;
+ }
/**
* @return string