*/ 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; } }