You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Lc\SovBundle\Event;
  3. use Lc\SovBundle\Doctrine\EntityInterface;
  4. use Symfony\Contracts\EventDispatcher\Event;
  5. /**
  6. * class EntityEvent.
  7. *
  8. * @author Simon Vieille <simon@deblan.fr>
  9. */
  10. class EntityComponentEvent extends Event
  11. {
  12. const DUPLICATE_EVENT = 'entity_component_event.duplicate';
  13. protected EntityInterface $entity;
  14. public function __construct(EntityInterface $entity)
  15. {
  16. $this->entity = $entity;
  17. }
  18. public function getEntity(): EntityInterface
  19. {
  20. return $this->entity;
  21. }
  22. }