1 | <?php |
||
14 | class ArgumentProcessor |
||
15 | { |
||
16 | /** |
||
17 | * selectArgs selects the appropriate set of arguments for the command |
||
18 | * to be executed and orders them as needed. |
||
19 | * |
||
20 | * @param SiteAliasInterface $siteAlias Description of |
||
21 | * @param array $args Command and arguments to execute (source) |
||
22 | * @param array $options key / value pair of option and value in include |
||
23 | * in final arguments |
||
24 | * @param array $optionsPassedAsArgs key / value pair of option and value |
||
25 | * to include in final arguments after the '--' argument. |
||
26 | * @return array Command and arguments to execute |
||
27 | */ |
||
28 | public function selectArgs(SiteAliasInterface $siteAlias, $args, $options = [], $optionsPassedAsArgs = []) |
||
52 | |||
53 | /** |
||
54 | * findArgSeparator finds the "--" argument in the provided arguments list, |
||
55 | * if present, and returns the arguments in three sets. |
||
56 | * |
||
57 | * @return array of three arrays, leading, "--" and trailing |
||
58 | */ |
||
59 | protected function findArgSeparator($args) |
||
72 | |||
73 | /** |
||
74 | * convertOptions takes an associative array of options (key / value) and |
||
75 | * converts it to an array of strings in the form --key=value. |
||
76 | * |
||
77 | * @param array $options in key => value form |
||
78 | * @return array options in --option=value form |
||
79 | */ |
||
80 | protected function convertOptions($options) |
||
95 | } |
||
96 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.