| 1 | <?php |
||
| 17 | class BoxController extends \hidev\controllers\CommonController |
||
| 18 | { |
||
| 19 | protected $_before = ['install', 'box.json']; |
||
| 20 | |||
| 21 | public $verbose; |
||
| 22 | |||
| 23 | public function getConfiguration() |
||
| 27 | |||
| 28 | public function actionIndex() |
||
| 38 | |||
| 39 | public function actionBuild() |
||
| 43 | |||
| 44 | public function runBuild() |
||
| 53 | } |
||
| 54 |
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: