1 | <?php |
||
23 | class DescribeCommand extends ManifestCommand |
||
24 | { |
||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 4 | protected function configure() |
|
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 2 | protected function execute(InputInterface $input, OutputInterface $output) |
|
53 | |||
54 | /** |
||
55 | * Describes a manifest. |
||
56 | * |
||
57 | * @param ManifestInterface $manifest Manifest |
||
58 | * @param OutputInterface $output Output |
||
59 | */ |
||
60 | 1 | private function describeManifest(ManifestInterface $manifest, OutputInterface $output) |
|
70 | |||
71 | /** |
||
72 | * Describes a procedure. |
||
73 | * |
||
74 | * @param Procedure $procedure Procedure |
||
75 | * @param OutputInterface $output Console output handle |
||
76 | * @param int $depth Current depth |
||
77 | */ |
||
78 | 1 | private function describeProcedure(Procedure $procedure, OutputInterface $output, $depth = 0) |
|
89 | |||
90 | /** |
||
91 | * Describes child procedures. |
||
92 | * |
||
93 | * @param array $children Procedure children |
||
94 | * @param OutputInterface $output Console output handle |
||
95 | * @param int $depth Current depth |
||
96 | */ |
||
97 | 1 | private function describeChildProcedures($children, $output, $depth) |
|
108 | |||
109 | /** |
||
110 | * Describes components. |
||
111 | * |
||
112 | * @param array $components Components |
||
113 | * @param string $name Component type |
||
114 | * @param OutputInterface $output Console output handle |
||
115 | * @param int $depth Current depth |
||
116 | */ |
||
117 | 1 | private function describeComponents($components, $name, OutputInterface $output, $depth = 0) |
|
131 | } |
||
132 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.