@@ -3,8 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use Consolidation\AnnotatedCommand\Hooks\HookManager; |
5 | 5 | use Consolidation\AnnotatedCommand\Parser\CommandInfo; |
6 | -use Consolidation\OutputFormatters\FormatterManager; |
|
7 | -use Consolidation\OutputFormatters\Options\FormatterOptions; |
|
8 | 6 | use Symfony\Component\Console\Command\Command; |
9 | 7 | use Symfony\Component\Console\Input\InputArgument; |
10 | 8 | use Symfony\Component\Console\Input\InputInterface; |
@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | protected $usesOutputInterface; |
36 | 36 | protected $returnType; |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $name |
|
40 | + */ |
|
38 | 41 | public function __construct($name = null) |
39 | 42 | { |
40 | 43 | $commandInfo = false; |
@@ -63,6 +66,9 @@ discard block |
||
63 | 66 | $this->commandCallback = $commandCallback; |
64 | 67 | } |
65 | 68 | |
69 | + /** |
|
70 | + * @param CommandProcessor $commandProcessor |
|
71 | + */ |
|
66 | 72 | public function setCommandProcessor($commandProcessor) |
67 | 73 | { |
68 | 74 | $this->commandProcessor = $commandProcessor; |
@@ -102,6 +108,9 @@ discard block |
||
102 | 108 | $this->annotationData = $annotationData; |
103 | 109 | } |
104 | 110 | |
111 | + /** |
|
112 | + * @param CommandInfo $commandInfo |
|
113 | + */ |
|
105 | 114 | public function setCommandInfo($commandInfo) |
106 | 115 | { |
107 | 116 | $this->setDescription($commandInfo->getDescription()); |
@@ -178,6 +187,9 @@ discard block |
||
178 | 187 | return InputArgument::OPTIONAL; |
179 | 188 | } |
180 | 189 | |
190 | + /** |
|
191 | + * @param CommandInfo $commandInfo |
|
192 | + */ |
|
181 | 193 | public function setCommandOptions($commandInfo, $automaticOptions = []) |
182 | 194 | { |
183 | 195 | $inputOptions = $commandInfo->inputOptions(); |
@@ -247,6 +259,9 @@ discard block |
||
247 | 259 | ); |
248 | 260 | } |
249 | 261 | |
262 | + /** |
|
263 | + * @param Hooks\CommandInfo[] $commandInfoList |
|
264 | + */ |
|
250 | 265 | public function optionsHookForHookAnnotations($commandInfoList) |
251 | 266 | { |
252 | 267 | foreach ($commandInfoList as $commandInfo) { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | /** |
38 | 38 | * For internal use only; indicates that the function to be called |
39 | 39 | * should be passed an InputInterface &/or an OutputInterface. |
40 | - * @param booean $usesInputInterface |
|
40 | + * @param boolean $usesInputInterface |
|
41 | 41 | * @param boolean $usesOutputInterface |
42 | 42 | * @return self |
43 | 43 | */ |