1 | <?php |
||
12 | class Example extends AppInstance |
||
13 | { |
||
14 | |||
15 | public $wsclient; |
||
16 | |||
17 | public $wsconn; |
||
18 | |||
19 | /** |
||
20 | * Constructor. |
||
21 | * @return void |
||
22 | */ |
||
23 | public function init() |
||
29 | |||
30 | /** |
||
31 | * Called when the worker is ready to go. |
||
32 | * @return void |
||
33 | */ |
||
34 | public function onReady() |
||
41 | |||
42 | public function connect() |
||
59 | |||
60 | /** |
||
61 | * Called when application instance is going to shutdown. |
||
62 | * @return boolean Ready to shutdown? |
||
63 | */ |
||
64 | public function onShutdown($graceful = false) |
||
71 | |||
72 | /** |
||
73 | * Setting default config options |
||
74 | * Overriden from AppInstance::getConfigDefaults |
||
75 | * @return array|false |
||
76 | */ |
||
77 | protected function getConfigDefaults() |
||
85 | } |
||
86 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.