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