for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Penny\Event;
use Exception;
use Cake\Event\Event as BaseCakeEvent;
use Penny\Route\RouteInfoInterface;
class CakeHttpFlowEvent extends BaseCakeEvent implements PennyEventInterface
{
/**
* Representation of an outgoing, client-side request.
*
* @var mixed
*/
private $request;
* Representation of an outgoing, server-side response.
private $response;
* Exception thrown during execution.
* @var Exception
private $exception;
* Routing information.
* @var RouteInfoInterface
private $routeInfo;
* {@inheritDoc}
public function __construct($name, $subject = null, $data = null)
$this->setName($name);
$this->data = $data;
$this->_subject = $subject;
}
public function setName($name)
$this->_name = $name;
public function getName()
return $this->name();
public function getResponse()
return $this->response;
public function setResponse($response)
$this->response = $response;
public function setRequest($request)
$this->request = $request;
public function getRequest()
return $this->request;
public function getRouteInfo()
return $this->routeInfo;
public function setRouteInfo(RouteInfoInterface $routerInfo)
$this->routeInfo = $routerInfo;
public function setException(Exception $exception)
$this->exception = $exception;
public function getException()
return $this->exception;
public function stopPropagation($flag = true)
$this->_stopped = $flag;