. **/ class CButtonIcon extends CSimpleButton { public function __construct(string $icon_class, ?string $title = null) { parent::__construct(); $this ->addClass(ZBX_STYLE_BTN_ICON) ->addClass($icon_class); if ($title !== null) { $this->setTitle($title); } } public function setSmall(): self { $this->addClass(ZBX_STYLE_BTN_SMALL); return $this; } }