EOF
) ;
} protected function execute(InputInterface
$input, OutputInterface
$output): int
{ $class =
$input->
getArgument('class'
);
if (class_exists($class)) { $this->
dumpValidatorsForClass($input,
$output,
$class);
return 0;
} try { foreach ($this->
getResourcesByPath($class) as $class) { $this->
dumpValidatorsForClass($input,
$output,
$class);
} } catch (DirectoryNotFoundException
) { $io =
new SymfonyStyle($input,
$output);
$io->
error(sprintf('Neither class nor path were found with "%s" argument.',
$input->
getArgument('class'
)));