for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Penny\Event;
use Exception;
use Penny\Route\RouteInfoInterface;
use Zend\EventManager\Event;
class ZendHttpFlowEvent extends Event implements EventInterface
{
/**
* 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;
public function __construct($name, $request, $response)
$this->setName($name);
$this->setRequest($request);
$this->setResponse($response);
}
* {@inheritDoc}
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;
* Route info getter.
* @return RouteInfoInterface
public function getRouteInfo()
return $this->routeInfo;
* Route info setter.
* @param RouteInfoInterface $routerInfo Routing information.
public function setRouteInfo(RouteInfoInterface $routerInfo)
$this->routeInfo = $routerInfo;
* Exception setter.
* @param Exception $exception Exception thrown during execution.
public function setException(Exception $exception)
$this->exception = $exception;
* Exception getter.
* @return Exception
public function getException()
return $this->exception;