@@ 155-161 (lines=7) @@ | ||
152 | $this->exampleUsage = $info_array['example_usages']; |
|
153 | $this->returnType = $info_array['return_type']; |
|
154 | ||
155 | foreach ((array)$info_array['arguments'] as $key => $info) { |
|
156 | $info = (array)$info; |
|
157 | $this->arguments->add($key, $info['description']); |
|
158 | if (array_key_exists('default', $info)) { |
|
159 | $this->arguments->setDefaultValue($key, $info['default']); |
|
160 | } |
|
161 | } |
|
162 | foreach ((array)$info_array['options'] as $key => $info) { |
|
163 | $info = (array)$info; |
|
164 | $this->options->add($key, $info['description']); |
|
@@ 162-168 (lines=7) @@ | ||
159 | $this->arguments->setDefaultValue($key, $info['default']); |
|
160 | } |
|
161 | } |
|
162 | foreach ((array)$info_array['options'] as $key => $info) { |
|
163 | $info = (array)$info; |
|
164 | $this->options->add($key, $info['description']); |
|
165 | if (array_key_exists('default', $info)) { |
|
166 | $this->options->setDefaultValue($key, $info['default']); |
|
167 | } |
|
168 | } |
|
169 | ||
170 | $this->input_options = []; |
|
171 | foreach ((array)$info_array['input_options'] as $i => $option) { |