Total Complexity | 10 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class Step |
||
13 | { |
||
14 | protected array $availableOptions = []; |
||
15 | |||
16 | public function options ( array $options ) : void |
||
23 | } |
||
24 | } |
||
25 | } |
||
26 | |||
27 | protected function textToCamelCase ( string $word ) : string |
||
32 | } |
||
33 | |||
34 | public function getType () : string |
||
46 | } |
||
|
|||
47 | } |
||
48 | |||
49 | public function getArrayRepresentation () : array |
||
60 |
For hinted functions/methods where all return statements with the correct type are only reachable via conditions, ?null? gets implicitly returned which may be incompatible with the hinted type. Let?s take a look at an example: