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.
|
- <?php
-
- namespace Lc\SovBundle\Event;
-
- use Lc\SovBundle\Doctrine\EntityInterface;
- use Symfony\Contracts\EventDispatcher\Event;
-
- /**
- * class EntityEvent.
- *
- * @author Simon Vieille <simon@deblan.fr>
- */
- class EntityComponentEvent extends Event
- {
- const DUPLICATE_EVENT = 'entity_component_event.duplicate';
-
- protected EntityInterface $entity;
-
- public function __construct(EntityInterface $entity)
- {
- $this->entity = $entity;
- }
-
- public function getEntity(): EntityInterface
- {
- return $this->entity;
- }
- }
|