| 1 | <?php |
||
| 16 | class NginxController extends \hidev\base\Controller |
||
| 17 | { |
||
| 18 | public $defaultAction = 'dump'; |
||
| 19 | |||
| 20 | public function actionDump() |
||
| 24 | |||
| 25 | public function actionDeploy() |
||
| 29 | |||
| 30 | public function actionLetsencrypt() |
||
| 34 | |||
| 35 | public function actionStart() |
||
| 39 | |||
| 40 | public function actionStop() |
||
| 44 | |||
| 45 | public function actionReload() |
||
| 49 | |||
| 50 | public function actionRestart() |
||
| 54 | |||
| 55 | public function actionStatus() |
||
| 59 | |||
| 60 | public function getComponent() |
||
| 64 | } |
||
| 65 |
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: