/** * set text * * @parser $parser * @parser $line */ function __construct($parser, $line = false) { parent::__construct(); if (!empty($line)) { $this->children[] = $line; } }
/** * set text */ function __construct($parser, $line = "") { parent::__construct(); if (preg_match('/' . self::REGEX . '/x', $line, $m)) { $this->children[] = preg_replace('/[\\\\](.)/x', '\\1', $m[1]); } }