1 | <?php |
||
5 | class FlowController |
||
6 | { |
||
7 | /** |
||
8 | * @var bool |
||
9 | */ |
||
10 | public $isRunning; |
||
11 | |||
12 | /** |
||
13 | * |
||
14 | */ |
||
15 | 64 | public function __construct() |
|
19 | |||
20 | /** |
||
21 | * |
||
22 | */ |
||
23 | 14 | public function __destruct() |
|
27 | |||
28 | /** |
||
29 | * Check if FlowController allows loop to run. |
||
30 | * |
||
31 | * @return bool |
||
32 | */ |
||
33 | 5 | public function isRunning() |
|
37 | |||
38 | /** |
||
39 | * Set FlowController to allow loop to run. |
||
40 | */ |
||
41 | 2 | public function start() |
|
45 | |||
46 | /** |
||
47 | * Set FlowController to not allow loop to run. |
||
48 | */ |
||
49 | 1 | public function stop() |
|
53 | } |
||
54 |