addItem($item); } if ($attributes !== null) { $this->addAttributes($attributes); } } /** * @param Html|array|string $content * @param Attributes|array $attributes * * @return $this */ public function addItem($content, $attributes = null) { return $this->add(HtmlElement::create('li', $attributes, $content)); } }