1 | <?php namespace Arcanesoft\Auth\Http\Controllers\Foundation; |
||
12 | class UsersController extends FoundationController |
||
13 | { |
||
14 | /* ------------------------------------------------------------------------------------------------ |
||
15 | | Constructor |
||
16 | | ------------------------------------------------------------------------------------------------ |
||
17 | */ |
||
18 | /** |
||
19 | * Instantiate the controller. |
||
20 | */ |
||
21 | public function __construct() |
||
28 | |||
29 | /* ------------------------------------------------------------------------------------------------ |
||
30 | | Main Functions |
||
31 | | ------------------------------------------------------------------------------------------------ |
||
32 | */ |
||
33 | public function index() |
||
42 | |||
43 | public function create() |
||
50 | |||
51 | public function store() |
||
55 | |||
56 | public function show($userId) |
||
65 | |||
66 | public function edit($userId) |
||
73 | |||
74 | public function update($userId) |
||
78 | |||
79 | public function delete($userId) |
||
83 | } |
||
84 |
If you implement
__call
and 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
__call
is implemented by a parent class and only the child class knows which methods exist: