forked from sebastianbergmann/state
-
Notifications
You must be signed in to change notification settings - Fork 2
/
StartUpState.php
executable file
·54 lines (42 loc) · 1.14 KB
/
StartUpState.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
namespace examples\statemachines\PwrCall;
//>>>> don't change the CUSTOM CODE comments, if you do generation will overwrite your code >>>>
//###START_CUSTOMCODE1
//###END_CUSTOMCODE1
class StartUpState extends AbstractPwrCallState {
//>>>> don't change the CUSTOM CODE comments, if you do generation will overwrite your code >>>>
//###START_CUSTOMCODE2
public function onEnterState() {
/*
* When the code is here between the START CUSTOMCODE and END CUSTOMCODE comment elements
* your code will not be overwritten when you regenerate your statemachines.
*/
}
//###END_CUSTOMCODE2
public function onExitState() {
}
/**
* @return WaitForUserRegState
*/
public function reqRegState() {
return new WaitForUserRegState();
}
/**
* @return EndState
*/
public function cancel() {
return new EndState();
}
/**
* @return WPCompleteState
*/
public function wpComplete() {
return new WPCompleteState();
}
/**
* @return TechnicalProblemState
*/
public function techProblem() {
return new TechnicalProblemState();
}
}