public function __construct($text, $line = null) { $this->rawText = $text; $this->line = $line; $this->text = $this->generateText(); }
/** * @param string $text * @param int|null $line * @param Node[] $nodes */ public function __construct($text, $line = null, array $nodes = array()) { parent::__construct($text, $line); $this->nodes = $nodes; }