/** * createLabel * * @param Option $option * * @return Htmlelement */ protected function createLabel($option) { $attrs = $option->getAttributes(); $attrs['id'] = $option->getAttribute('id') . '-label'; $attrs['for'] = $option->getAttribute('id'); $attrs['value'] = null; $attrs['checked'] = null; $attrs['type'] = null; $attrs['name'] = null; return new HtmlElement('label', $option->getContent(), $attrs); }