/** * @param string $text Text */ public function __construct($text) { parent::__construct(null); $this->text = $text; }
/** * {@inheritdoc} */ public function __construct($tagName, array $attributes = array()) { parent::__construct($tagName, $attributes); $this->elements = array(); }