| 1 | <?php  | 
            ||
| 11 | class ShellPathCompletion implements CompletionInterface  | 
            ||
| 12 | { | 
            ||
| 13 | /**  | 
            ||
| 14 | * Exit code set up to trigger path completion in the completion hooks  | 
            ||
| 15 | * @see Stecman\Component\Symfony\Console\BashCompletion\HookFactory  | 
            ||
| 16 | */  | 
            ||
| 17 | const PATH_COMPLETION_EXIT_CODE = 200;  | 
            ||
| 18 | |||
| 19 | protected $type;  | 
            ||
| 20 | |||
| 21 | protected $commandName;  | 
            ||
| 22 | |||
| 23 | protected $targetName;  | 
            ||
| 24 | |||
| 25 | public function __construct($commandName, $targetName, $type)  | 
            ||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * @inheritdoc  | 
            ||
| 34 | */  | 
            ||
| 35 | public function getType()  | 
            ||
| 39 | |||
| 40 | /**  | 
            ||
| 41 | * @inheritdoc  | 
            ||
| 42 | */  | 
            ||
| 43 | public function getCommandName()  | 
            ||
| 47 | |||
| 48 | /**  | 
            ||
| 49 | * @inheritdoc  | 
            ||
| 50 | */  | 
            ||
| 51 | public function getTargetName()  | 
            ||
| 55 | |||
| 56 | /**  | 
            ||
| 57 | * Exit with a status code configured to defer completion to the shell  | 
            ||
| 58 | *  | 
            ||
| 59 | * @see \Stecman\Component\Symfony\Console\BashCompletion\HookFactory::$hooks  | 
            ||
| 60 | */  | 
            ||
| 61 | public function run()  | 
            ||
| 65 | }  | 
            ||
| 66 |