/** * @param Html $el * @param Html|string $content * @return Html fluent interface */ private function addContent(Html $el, $content) { if ($content instanceof Html) { $el->addHtml($content); } else { $el->addText($content); } return $el; }