summaryrefslogtreecommitdiff
path: root/src/ste/TextNode.php
blob: c46d71f7e5c4f9048b3b752f716044d287bffd8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

namespace kch42\ste;

class TextNode extends ASTNode
{
    /** @var string */
    public $text;

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