setName(self::NAME) ->setDescription('Delete records from field changes which are invalid'); parent::configure(); } protected function execute(InputInterface $input, OutputInterface $output) { $io = new SymfonyStyle($input, $output); $numberOfRecordsDeleted = $this->fieldChangeRepository->deleteOrphanLeadChanges(); $io->success("$numberOfRecordsDeleted records deleted."); $io->success('Execution time: '.number_format(microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'], 3)); return Command::SUCCESS; } }