summaryrefslogtreecommitdiff
path: root/src/ste/TagNode.php
blob: 18567b29140f5d793c8f46faa88895ff8c538979 (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 = array();

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

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