Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class BrakeState extends State |
||
12 | { |
||
13 | /** |
||
14 | * @return SpeedUpState |
||
15 | */ |
||
16 | public function speedUp(): SpeedUpState |
||
17 | { |
||
18 | return new SpeedUpState(); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @return BrakeState |
||
23 | */ |
||
24 | public function brake(): BrakeState |
||
25 | { |
||
26 | return new self(); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return OffState |
||
31 | */ |
||
32 | public function turnOff(): OffState |
||
35 | } |
||
36 | } |
||
37 |