src/Event/AfterEach.php
<?php
namespace Hmaus\Spas\Event;
use Hmaus\Spas\Parser\ParsedRequest;
use Symfony\Component\EventDispatcher\Event;
class AfterEach extends Event
{
const NAME = 'hmaus.spas.event.after_each';
/**
* @var ParsedRequest
*/
private $request;
public function __construct(ParsedRequest $request)
{
$this->request = $request;
}
/**
* @return ParsedRequest
*/
public function getRequest(): ParsedRequest
{
return $this->request;
}
/**
* @param ParsedRequest $request
*/
public function setRequest(ParsedRequest $request)
{
$this->request = $request;
}
}