public function __construct($node, $id = null) { parent::__construct($node); if ($id != null) { $this->setId($id); } }
public function __construct($text) { parent::__construct("span", $text); }