| 1 | <?php namespace Arcanesoft\Blog\Http\Controllers\Admin; |
||
| 9 | class DashboardController extends Controller |
||
| 10 | { |
||
| 11 | /* ------------------------------------------------------------------------------------------------ |
||
| 12 | | Constructor |
||
| 13 | | ------------------------------------------------------------------------------------------------ |
||
| 14 | */ |
||
| 15 | /** |
||
| 16 | * Instantiate the controller. |
||
| 17 | */ |
||
| 18 | public function __construct() |
||
| 24 | |||
| 25 | /* ------------------------------------------------------------------------------------------------ |
||
| 26 | | Main Functions |
||
| 27 | | ------------------------------------------------------------------------------------------------ |
||
| 28 | */ |
||
| 29 | public function index() |
||
| 38 | } |
||
| 39 |
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: