for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the bee4/transport package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Bee4 2015
* @author Stephane HULARD <[email protected]>
* @package Bee4\Transport\Events
*/
namespace Bee4\Transport\Events;
use Bee4\Events\EventInterface;
* Wrap error events
class ErrorEvent implements EventInterface
{
const ERROR = 'transport.error';
* @var \Exception
protected $error;
* @param \Exception $error
public function __construct(\Exception $error)
$this->error = $error;
}
* @return \Exception
public function getError()
return $this->error;