/** * Display command begin note. * * @param InputInterface $input Console input. * @param OutputStyle $outputStyle Console style. * @return FetchCommand $this Fluent interface. */ protected function displayCommandBegin(InputInterface $input, OutputStyle $outputStyle) { $outputStyle->title('Exchange rates:'); $outputStyle->text(sprintf('Fetching from %s for date %s....', $input->getOption('source') ? sprintf('"%s"', implode('", "', $input->getOption('source'))) : 'all sources', $input->getOption('date')->format('Y-m-d'))); return $this; }