summaryrefslogtreecommitdiff
path: root/src/ste/TagNode.php
blob: cef4220120ea32bed29cbe62fba9597780bb0ac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

namespace kch42\ste;

class TagNode extends ASTNode
{
    /** @var string */
    public $name;

    /** @var ASTNode[][] */
    public $params = [];

    /** @var ASTNode[] */
    public $sub = [];

    /**
     * @param string $tpl
     * @param int $off
     * @param string $name
     */
    public function __construct($tpl, $off, $name = "")
    {
        parent::__construct($tpl, $off);
        $this->name = $name;
    }
}