ProfileMenuEvent.php 778 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\UserBundle\Menu;
  11. use Knp\Menu\ItemInterface;
  12. use Symfony\Component\EventDispatcher\Event;
  13. /**
  14. * @author Hugo Briand <briand@ekino.com>
  15. */
  16. class ProfileMenuEvent extends Event
  17. {
  18. /**
  19. * @var ItemInterface
  20. */
  21. private $menu;
  22. /**
  23. * @param ItemInterface $menu
  24. */
  25. public function __construct(ItemInterface $menu)
  26. {
  27. $this->menu = $menu;
  28. }
  29. /**
  30. * @return ItemInterface
  31. */
  32. public function getMenu()
  33. {
  34. return $this->menu;
  35. }
  36. }