Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class State implements CarState |
||
14 | { |
||
15 | /** |
||
16 | * @return SpeedUpState |
||
17 | * @throws Exception |
||
18 | */ |
||
19 | public function speedUp(): SpeedUpState |
||
20 | { |
||
21 | throw new Exception(); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return BrakeState |
||
26 | * @throws Exception |
||
27 | */ |
||
28 | public function brake(): BrakeState |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return OffState |
||
35 | * @throws Exception |
||
36 | */ |
||
37 | public function turnOff(): OffState |
||
38 | { |
||
39 | throw new Exception(); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return OnState |
||
44 | * @throws Exception |
||
45 | */ |
||
46 | public function turnOn(): OnState |
||
49 | } |
||
50 | } |
||
51 |