Total Complexity | 5 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class DummyAdapter implements AdapterInterface |
||
8 | { |
||
9 | private const NAME = 'Econt'; |
||
10 | |||
11 | public function getName(): string |
||
12 | { |
||
13 | return self::NAME; |
||
14 | } |
||
15 | |||
16 | public function getCountries(): Response\GetCountriesResponse |
||
18 | // TODO: Implement getCountries() method. |
||
19 | } |
||
|
|||
20 | |||
21 | public function getCities(array $data) |
||
23 | // TODO: Implement getCities() method. |
||
24 | } |
||
25 | |||
26 | public function getOffices(array $data) |
||
28 | // TODO: Implement getOffices() method. |
||
29 | } |
||
30 | |||
31 | public function track(array $data) |
||
35 | } |
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: