for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) 2016 Jacek Kobus <[email protected]>
* See the file LICENSE.md for copying permission.
*/
namespace PHPExtra\EventManager\Exception;
use PHPExtra\EventManager\Event\Event;
use PHPExtra\EventManager\Listener\Listener;
* The EventException class
*
* @author Jacek Kobus <[email protected]>
class ListenerException extends \RuntimeException
{
* @var Event
private $event;
* @var Listener
private $listener;
* @param Event $event
* @param Listener $listener
* @param string $message
* @param \Exception $previous
public function __construct(Event $event, Listener $listener, $message, \Exception $previous = null)
$this->event = $event;
$this->listener = $listener;
parent::__construct($message, 1, $previous);
}
* @return Event
public function getEvent()
return $this->event;
* @return Listener
public function getListener()
return $this->listener;