setFor($id); } public function setFor($id): self { if ($id !== null) { $this->setAttribute('for', zbx_formatDomId($id)); } return $this; } /** * Allow to add visual 'asterisk' mark to label. * * @param bool $add_asterisk Define is label marked with asterisk or not. * * @return CLabel */ public function setAsteriskMark($add_asterisk = true) { return $this->addClass($add_asterisk ? ZBX_STYLE_FIELD_LABEL_ASTERISK : null); } }