*/ class EntityManagerEvent extends Event { protected $params; public function __construct(EntityInterface $entity, array $params = []) { $this->params = $params; parent::__construct($entity); } public function getParams(): array { return $this->params; } }