@@ -81,6 +81,9 @@ discard block |
||
| 81 | 81 | ; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $defaultValue |
|
| 86 | + */ |
|
| 84 | 87 | private function addPackagePrefixSection($defaultValue = null) |
| 85 | 88 | { |
| 86 | 89 | $node = $this->createRoot('prefix') |
@@ -197,6 +200,10 @@ discard block |
||
| 197 | 200 | return $config; |
| 198 | 201 | } |
| 199 | 202 | |
| 203 | + /** |
|
| 204 | + * @param string $root |
|
| 205 | + * @param string $type |
|
| 206 | + */ |
|
| 200 | 207 | private function createRoot($root, $type = null) |
| 201 | 208 | { |
| 202 | 209 | $treeBuilder = new TreeBuilder(); |
@@ -25,6 +25,9 @@ discard block |
||
| 25 | 25 | $this->output = $output; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string[] $allowedValues |
|
| 30 | + */ |
|
| 28 | 31 | public function setAllowedValues($allowedValues) |
| 29 | 32 | { |
| 30 | 33 | $this->allowedValues = $allowedValues; |
@@ -32,6 +35,9 @@ discard block |
||
| 32 | 35 | return $this; |
| 33 | 36 | } |
| 34 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string $errorMessage |
|
| 40 | + */ |
|
| 35 | 41 | public function setErrorMessage($errorMessage) |
| 36 | 42 | { |
| 37 | 43 | $this->errorMessage = $errorMessage; |
@@ -39,6 +45,9 @@ discard block |
||
| 39 | 45 | return $this; |
| 40 | 46 | } |
| 41 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $defaultValue |
|
| 50 | + */ |
|
| 42 | 51 | public function setDefaultValue($defaultValue) |
| 43 | 52 | { |
| 44 | 53 | $this->defaultValue = $defaultValue; |
@@ -46,6 +55,10 @@ discard block |
||
| 46 | 55 | return $this; |
| 47 | 56 | } |
| 48 | 57 | |
| 58 | + /** |
|
| 59 | + * @param string $name |
|
| 60 | + * @param string $question |
|
| 61 | + */ |
|
| 49 | 62 | public function setOption($name, $question) |
| 50 | 63 | { |
| 51 | 64 | $selection = $this->input->getOption($name); |
@@ -74,6 +87,9 @@ discard block |
||
| 74 | 87 | return $selection; |
| 75 | 88 | } |
| 76 | 89 | |
| 90 | + /** |
|
| 91 | + * @return string|boolean |
|
| 92 | + */ |
|
| 77 | 93 | private function ask($question) |
| 78 | 94 | { |
| 79 | 95 | return $this->command->getHelper('question')->ask($this->input, $this->output, $question); |
@@ -70,6 +70,9 @@ |
||
| 70 | 70 | return new Configuration($container->getParameter('kernel.root_dir')); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param string $id |
|
| 75 | + */ |
|
| 73 | 76 | private function id($id) |
| 74 | 77 | { |
| 75 | 78 | return $this->getAlias().'.'.$id; |