Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

29 rindas
547B

  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. }