for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license MIT
* @author Igor Sorokin <[email protected]>
*/
namespace Dspbee\Bundle\Alert;
* Save message to the cookie.
*
* Class Alert
* @package Dspbee\Bundle\Alert
abstract class Alert
{
* @param string $message
* @return bool
public function alert($message)
__construct()
if (!headers_sent()) {
setcookie('__alert__', $message . '|' . $this->color, time() + 3600 * 24 * 30, '/');
return true;
}
return false;
protected $color;