infinito/application/src/Event/Menu/MenuEvent.php

61 lines
1.1 KiB
PHP
Raw Normal View History

2018-10-04 21:40:07 +02:00
<?php
namespace App\Event\Menu;
use Knp\Menu\FactoryInterface;
use Knp\Menu\ItemInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\HttpFoundation\RequestStack;
/**
*
* @author kevinfrantz
*
*/
2018-10-04 22:05:31 +02:00
class MenuEvent extends Event
2018-10-04 21:40:07 +02:00
{
/**
* @var FactoryInterface
*/
private $factory;
/**
* @var ItemInterface
*/
private $item;
/**
* @var RequestStack
*/
private $request;
public function __construct(FactoryInterface $factory, ItemInterface $item, RequestStack $request)
{
$this->factory = $factory;
$this->item = $item;
$this->request = $request;
}
/**
* @return FactoryInterface
*/
public function getFactory(): FactoryInterface
{
return $this->factory;
}
/**
* @return ItemInterface
*/
public function getItem(): ItemInterface
{
return $this->item;
}
/**
* @return RequestStack
*/
public function getRequest(): RequestStack
{
return $this->request;
}
}