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\Alert;
/**
* Abstract alert.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Bundle\BootstrapBundle\Alert
* @abstract
abstract class AbstractAlert implements AlertInterface {
* Content.
* @var string
private $content;
* Dismissible.
* @var bool
private $dismissible;
* Type.
private $type;
* Constructor.
* @param string type.
protected function __construct($type) {
$this->setType($type);
}
* {@inheritDoc}
public function getContent() {
return $this->content;
public function getDismissible() {
return $this->dismissible;
public function getPrefix() {
return "alert-";
public function getType() {
return $this->type;
public function setContent($content) {
$this->content = $content;
return $this;
public function setDismissible($dismissible) {
$this->dismissible = $dismissible;
public function setType($type) {
$this->type = $type;