summaryrefslogtreecommitdiff
path: root/src/ste/TagNode.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-09-15 22:21:04 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-09-15 22:21:04 +0200
commit71176122872e7d200167cd77d48ed30fda95b3ae (patch)
tree99a5f37ab70d66a5fa222fd0e114899751aa662b /src/ste/TagNode.php
parent76a1e915e0eea54b9b9a01d921efa6f9edffb3a8 (diff)
downloadste-71176122872e7d200167cd77d48ed30fda95b3ae.tar.gz
ste-71176122872e7d200167cd77d48ed30fda95b3ae.tar.bz2
ste-71176122872e7d200167cd77d48ed30fda95b3ae.zip
Add some unit tests for the parser
So far only testing success, we should also test failing parse inputs.
Diffstat (limited to 'src/ste/TagNode.php')
-rw-r--r--src/ste/TagNode.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ste/TagNode.php b/src/ste/TagNode.php
index 4adcad8..ce713c0 100644
--- a/src/ste/TagNode.php
+++ b/src/ste/TagNode.php
@@ -17,10 +17,14 @@ class TagNode extends ASTNode
* @param string $tpl
* @param int $off
* @param string $name
+ * @param ASTNode[][] $params
+ * @param ASTNode[] $sub
*/
- public function __construct(string $tpl, int $off, string $name = "")
+ public function __construct(string $tpl, int $off, string $name = "", array $params = [], array $sub = [])
{
parent::__construct($tpl, $off);
$this->name = $name;
+ $this->params = $params;
+ $this->sub = $sub;
}
}