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\Button;
/**
* Abstract button.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Bundle\BootstrapBundle\Button
* @abstract
abstract class AbstractButton implements ButtonInterface {
* Active
* @var bool
private $active;
* Block.
private $block;
* Content.
* @var string
private $content;
* Disabled.
private $disabled;
* Size.
private $size;
* Title.
private $title;
* Type.
private $type;
* Constructor.
* @param string type.
protected function __construct($type) {
$this->setActive(false);
$this->setBlock(false);
$this->setDisabled(false);
$this->setType($type);
}
* {@inheritdoc}
public function getActive() {
return $this->active;
public function getBlock() {
return $this->block;
public function getContent() {
return $this->content;
public function getDisabled() {
return $this->disabled;
public function getSize() {
return $this->size;
public function getTitle() {
return $this->title;
public function getType() {
return $this->type;
public function setActive($active) {
$this->active = $active;
return $this;
public function setBlock($block) {
$this->block = $block;
public function setContent($content) {
$this->content = $content;
public function setDisabled($disabled) {
$this->disabled = $disabled;
public function setSize($size) {
$this->size = $size;
public function setTitle($title) {
$this->title = $title;
public function setType($type) {
$this->type = $type;