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\EventDispatcher\Event;
use Borobudur\Http\Request;
use Borobudur\Kernel\KernelInterface;
/**
* @author Iqbal Maulana <[email protected]>
* @created 8/13/15
class KernelEvent extends Event
{
* @var KernelInterface
protected $kernel;
* @var Request
protected $request;
* Constructor.
* @param KernelInterface $kernel
* @param Request|null $request
public function __construct(KernelInterface $kernel, Request $request = null)
$this->kernel = $kernel;
$this->request = $request;
}
* Get kernel.
* @return KernelInterface
public function getKernel()
return $this->kernel;
* Get request.
* @return Request
public function getRequest()
return $this->request;