1 | <?php namespace Modules\User\Http\Controllers\Admin; |
||
10 | class UserController extends BaseUserModuleController |
||
11 | { |
||
12 | /** |
||
13 | * @var UserRepository |
||
14 | */ |
||
15 | private $user; |
||
16 | /** |
||
17 | * @var RoleRepository |
||
18 | */ |
||
19 | private $role; |
||
20 | /** |
||
21 | * @var Authentication |
||
22 | */ |
||
23 | private $auth; |
||
24 | |||
25 | /** |
||
26 | * @param PermissionManager $permissions |
||
27 | * @param UserRepository $user |
||
28 | * @param RoleRepository $role |
||
29 | * @param Authentication $auth |
||
30 | */ |
||
31 | public function __construct( |
||
44 | |||
45 | /** |
||
46 | * Display a listing of the resource. |
||
47 | * |
||
48 | * @return Response |
||
49 | */ |
||
50 | public function index() |
||
58 | |||
59 | /** |
||
60 | * Show the form for creating a new resource. |
||
61 | * |
||
62 | * @return Response |
||
63 | */ |
||
64 | public function create() |
||
70 | |||
71 | /** |
||
72 | * Store a newly created resource in storage. |
||
73 | * |
||
74 | * @param CreateUserRequest $request |
||
75 | * @return Response |
||
76 | */ |
||
77 | public function store(CreateUserRequest $request) |
||
87 | |||
88 | /** |
||
89 | * Show the form for editing the specified resource. |
||
90 | * |
||
91 | * @param int $id |
||
92 | * @return Response |
||
93 | */ |
||
94 | public function edit($id) |
||
107 | |||
108 | /** |
||
109 | * Update the specified resource in storage. |
||
110 | * |
||
111 | * @param int $id |
||
112 | * @param UpdateUserRequest $request |
||
113 | * @return Response |
||
114 | */ |
||
115 | public function update($id, UpdateUserRequest $request) |
||
125 | |||
126 | /** |
||
127 | * Remove the specified resource from storage. |
||
128 | * |
||
129 | * @param int $id |
||
130 | * @return Response |
||
131 | */ |
||
132 | public function destroy($id) |
||
140 | } |
||
141 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.