for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the core-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\CoreBundle\Toast;
/**
* Abstract toast.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Bundle\CoreBundle\Toast
* @abstract
abstract class AbstractToast implements ToastInterface {
* Content.
* @var string
private $content;
* Type.
private $type;
* Constructor.
* @param string $type The type.
* @param string $content The content.
protected function __construct($type, $content) {
$this->setContent($content);
$this->setType($type);
}
* {@inheritDoc}
public function getContent() {
return $this->content;
public function getType() {
return $this->type;
* Set the content.
* @return ToastInterface Returns this toast.
protected function setContent($content) {
$this->content = $content;
return $this;
* Set the type.
protected function setType($type) {
$this->type = $type;