| 1 | <?php namespace Arcanesoft\Auth\Http\Controllers\Foundation; |
||
| 11 | class PermissionsController extends FoundationController |
||
| 12 | { |
||
| 13 | /* ------------------------------------------------------------------------------------------------ |
||
| 14 | | Constructor |
||
| 15 | | ------------------------------------------------------------------------------------------------ |
||
| 16 | */ |
||
| 17 | /** |
||
| 18 | * Instantiate the controller. |
||
| 19 | */ |
||
| 20 | public function __construct() |
||
| 27 | |||
| 28 | /* ------------------------------------------------------------------------------------------------ |
||
| 29 | | Main Functions |
||
| 30 | | ------------------------------------------------------------------------------------------------ |
||
| 31 | */ |
||
| 32 | public function index() |
||
| 36 | } |
||
| 37 |
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: