for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Lug package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Lug\Bundle\UiBundle\Menu;
use Knp\Menu\FactoryInterface;
use Knp\Menu\ItemInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* @author GeLo <[email protected]>
class MenuBuilderEvent extends Event
{
* @var FactoryInterface
private $factory;
* @var ItemInterface
private $item;
* @param FactoryInterface $factory
* @param ItemInterface $item
public function __construct(FactoryInterface $factory, ItemInterface $item)
$this->factory = $factory;
$this->item = $item;
}
* @return FactoryInterface
public function getFactory()
return $this->factory;
* @return ItemInterface
public function getItem()
return $this->item;