for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the bootstrap-bundle package.
*
* (c) 2019 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\BootstrapBundle\Badge;
/**
* Abstract badge.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Bundle\BootstrapBundle\Badge
* @abstract
abstract class AbstractBadge implements BadgeInterface {
* Content.
* @var string
private $content;
* Pill.
* @var bool
private $pill;
* Type.
private $type;
* Constructor.
* @param string type.
protected function __construct($type) {
$this->setType($type);
}
* {@inheritDoc}
public function getContent() {
return $this->content;
public function getPill() {
return $this->pill;
public function getPrefix() {
return "badge-";
public function getType() {
return $this->type;
public function setContent($content) {
$this->content = $content;
return $this;
public function setPill($pill) {
$this->pill = $pill;
public function setType($type) {
$this->type = $type;