etlService = $etlService; $this->addOption( 'max', null, InputOption::VALUE_OPTIONAL, 'the maximum number of rows to transform', 25000 ); } protected function execute(InputInterface $input, OutputInterface $output): int { $max = $input->getOption('max'); $this->etlService->extractAndTransform( (int)$max, $output ); return 0; } }