public function addBadge($caption, $leftSeparator = " ") { $badge = new HtmlBadge("badge-" . $this->identifier); $badge->setContent($caption); $this->content .= $leftSeparator . $badge->compile(); return $this; }