tag !== ''; } public function render(): string { return sprintf( '<%1$s %2$s>%3$s%4$s', $this->getTag(), $this->getAttributesString(), $this->getRenderedIcon(), htmlspecialchars($this->getLabel() ?? '') ); } }