1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php namespace r7r\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; } }