Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class Ethereum |
||
16 | { |
||
17 | /** |
||
18 | * Which full-node client software are we using to make requests back to the |
||
19 | * Ethereum network. |
||
20 | * |
||
21 | * @return string |
||
22 | */ |
||
23 | public function implementation() : string |
||
24 | { |
||
25 | return 'geth'; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return bool |
||
30 | */ |
||
31 | public function connect() : bool |
||
33 | // TODO |
||
34 | } |
||
|
|||
35 | |||
36 | /** |
||
37 | * @return bool |
||
38 | */ |
||
39 | public function verifyProof() : bool |
||
45 |
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: