userId); $user = $this->userRepository->get($userId); if ($command->tenantId !== '' && !$user->tenantId->equals(TenantId::fromString($command->tenantId))) { throw UserNotFoundException::withId($userId); } $user->debloquer($this->clock->now()); $this->userRepository->save($user); return $user; } }