setName(self::NAME) ->setDescription('Deletes all orphan visits'); } protected function doExecute(InputInterface $input, SymfonyStyle $io): int { $result = $this->deleter->deleteOrphanVisits(); $io->success(sprintf('Successfully deleted %s visits', $result->affectedItems)); return ExitCode::EXIT_SUCCESS; } protected function getWarningMessage(): string { return 'You are about to delete all orphan visits. This operation cannot be undone.'; } }