OptionHookInterface.php 394 Bytes
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php
namespace Consolidation\AnnotatedCommand\Hooks;

use Consolidation\AnnotatedCommand\AnnotationData;
use Symfony\Component\Console\Command\Command;

/**
 * Add options to a command.
 *
 * @see HookManager::addOptionHook()
 * @see AnnotatedCommandFactory::addListener()
 */
interface OptionHookInterface
{
    public function getOptions(Command $command, AnnotationData $annotationData);
}