コード例 #1
0
 public function addBadge($caption, $leftSeparator = " ")
 {
     $badge = new HtmlBadge("badge-" . $this->identifier, $caption);
     $badge->wrap($leftSeparator);
     $this->addContent($badge);
     return $this;
 }
コード例 #2
0
 public function addBadge($caption, $leftSeparator = " ")
 {
     $badge = new HtmlBadge("badge-" . $this->identifier);
     $badge->setContent($caption);
     $this->content .= $leftSeparator . $badge->compile();
     return $this;
 }