Files
icehrm/lib/composer/vendor/consolidation/annotated-command/tests/src/ExampleCommandInfoAlterer.php
2017-09-03 20:39:22 +02:00

16 lines
522 B
PHP

<?php
namespace Consolidation\TestUtils;
use Consolidation\AnnotatedCommand\Parser\CommandInfo;
use Consolidation\AnnotatedCommand\CommandInfoAltererInterface;
class ExampleCommandInfoAlterer implements CommandInfoAltererInterface
{
public function alterCommandInfo(CommandInfo $commandInfo, $commandFileInstance)
{
if ($commandInfo->hasAnnotation('arbitrary')) {
$commandInfo->addAnnotation('dynamic', "This annotation was dynamically added by ExampleCommandInfoAlterer");
}
}
}