$legend); parent::__construct("", $name, $properties); } public function render() { $wrapperClass = $this->getWrapperCssClass(); if (!empty($wrapperClass)) { $existing = isset($this->attributes['class']) ? $this->attributes['class'] . ' ' : ''; $this->attributes['class'] = $existing . $wrapperClass; } $wrapperID = $this->getWrapperCssId(); if (!empty($wrapperID)) { $this->attributes['id'] = $wrapperID; } $legend = $this->attributes["legend"]; echo '