Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function addAvailableMetric($storagePrefix, $metric, $label, $help, $type, $defaultValue) { |
||
23 | $this->availableMetrics[] = [ |
||
24 | 'storagePrefix' => $storagePrefix, |
||
25 | 'metric' => $metric, |
||
26 | 'label' => $label, |
||
27 | 'help' => $help, |
||
28 | 'type' => $type, |
||
29 | 'defaultValue' => $defaultValue |
||
30 | ]; |
||
31 | } |
||
32 | |||
44 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.