2 namespace Consolidation\TestUtils;
4 use Consolidation\AnnotatedCommand\Parser\CommandInfo;
5 use Consolidation\AnnotatedCommand\CommandInfoAltererInterface;
7 class ExampleCommandInfoAlterer implements CommandInfoAltererInterface
9 public function alterCommandInfo(CommandInfo $commandInfo, $commandFileInstance)
11 if ($commandInfo->hasAnnotation('arbitrary')) {
12 $commandInfo->addAnnotation('dynamic', "This annotation was dynamically added by ExampleCommandInfoAlterer");