for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Borobudur-Kernel package.
*
* (c) Hexacodelabs <http://hexacodelabs.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Borobudur\Kernel\Event;
use Borobudur\Http\Response;
/**
* @author Iqbal Maulana <[email protected]>
* @created 8/13/15
class ResponseEvent extends KernelEvent
{
* @var Response
protected $response;
* Set response.
* @param Response $response
public function setResponse(Response $response)
$this->response = $response;
$this->stopPropagation();
}
* Get response.
* @return Response
public function getResponse()
return $this->response;
* Check if event has response.
* @return bool
public function hasResponse()
return null !== $this->response;