@@ 183-189 (lines=7) @@ | ||
180 | $this->exampleUsage = $info_array['example_usages']; |
|
181 | $this->returnType = $info_array['return_type']; |
|
182 | ||
183 | foreach ((array)$info_array['arguments'] as $key => $info) { |
|
184 | $info = (array)$info; |
|
185 | $this->arguments->add($key, $info['description']); |
|
186 | if (array_key_exists('default', $info)) { |
|
187 | $this->arguments->setDefaultValue($key, $info['default']); |
|
188 | } |
|
189 | } |
|
190 | foreach ((array)$info_array['options'] as $key => $info) { |
|
191 | $info = (array)$info; |
|
192 | $this->options->add($key, $info['description']); |
|
@@ 190-196 (lines=7) @@ | ||
187 | $this->arguments->setDefaultValue($key, $info['default']); |
|
188 | } |
|
189 | } |
|
190 | foreach ((array)$info_array['options'] as $key => $info) { |
|
191 | $info = (array)$info; |
|
192 | $this->options->add($key, $info['description']); |
|
193 | if (array_key_exists('default', $info)) { |
|
194 | $this->options->setDefaultValue($key, $info['default']); |
|
195 | } |
|
196 | } |
|
197 | ||
198 | $this->input_options = []; |
|
199 | foreach ((array)$info_array['input_options'] as $i => $option) { |