1 | <?php |
||
7 | class CommandData |
||
8 | { |
||
9 | /** var AnnotationData */ |
||
10 | protected $annotationData; |
||
11 | /** var InputInterface */ |
||
12 | protected $input; |
||
13 | /** var OutputInterface */ |
||
14 | protected $output; |
||
15 | /** var boolean */ |
||
16 | protected $usesInputInterface; |
||
17 | /** var boolean */ |
||
18 | protected $usesOutputInterface; |
||
19 | /** var boolean */ |
||
20 | protected $includeOptionsInArgs; |
||
21 | /** var string */ |
||
22 | protected $filePath; |
||
23 | |||
24 | public function __construct( |
||
38 | |||
39 | /** |
||
40 | * For internal use only; indicates that the function to be called |
||
41 | * should be passed an InputInterface &/or an OutputInterface. |
||
42 | * @param booean $usesInputInterface |
||
43 | * @param boolean $usesOutputInterface |
||
44 | * @return self |
||
45 | */ |
||
46 | public function setUseIOInterfaces($usesInputInterface, $usesOutputInterface) |
||
52 | |||
53 | /** |
||
54 | * For backwards-compatibility mode only: disable addition of |
||
55 | * options on the end of the arguments list. |
||
56 | */ |
||
57 | public function setIncludeOptionsInArgs($includeOptionsInArgs) |
||
62 | |||
63 | public function annotationData() |
||
67 | |||
68 | public function input() |
||
72 | |||
73 | public function output() |
||
77 | |||
78 | public function arguments() |
||
82 | |||
83 | public function options() |
||
87 | |||
88 | // TODO: This should be a required constructor argument, but |
||
89 | // implementing it this way to maintain backwards compatibility. |
||
90 | public function setFilePath($filePath) |
||
94 | |||
95 | public function filePath() |
||
99 | |||
100 | public function getArgsWithoutAppName() |
||
120 | |||
121 | public function getArgsAndOptions() |
||
130 | } |
||
131 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.