| 1 | <?php |
||
| 6 | class ExampleAsyncProcessRequest extends Generic |
||
| 7 | { |
||
| 8 | |||
| 9 | public $proc; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Constructor. |
||
| 13 | * @return void |
||
| 14 | */ |
||
| 15 | public function init() |
||
| 29 | |||
| 30 | public function onAbort() |
||
| 36 | |||
| 37 | public function onFinish() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Called when request iterated. |
||
| 44 | * @return integer Status. |
||
| 45 | */ |
||
| 46 | public function run() |
||
| 52 | } |
||
| 53 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: