1 | <?php |
||
38 | class Controller extends PortApiController |
||
39 | { |
||
40 | |||
41 | /** |
||
42 | * @param \App\Containers\Authorization\UI\API\Requests\ListAllPermissionsRequest $request |
||
43 | * @param \App\Containers\Authorization\Actions\ListAllPermissionsAction $action |
||
44 | * |
||
45 | * @return \Dingo\Api\Http\Response |
||
46 | */ |
||
47 | public function listAllPermissions(ListAllPermissionsRequest $request, ListAllPermissionsAction $action) |
||
53 | |||
54 | /** |
||
55 | * @param \App\Containers\Authorization\UI\API\Requests\GetPermissionRequest $request |
||
56 | * @param \App\Containers\Authorization\Actions\GetPermissionAction $action |
||
57 | * |
||
58 | * @return \Dingo\Api\Http\Response |
||
59 | */ |
||
60 | public function getPermission(GetPermissionRequest $request, GetPermissionAction $action) |
||
66 | |||
67 | /** |
||
68 | * @param \App\Containers\Authorization\UI\API\Requests\ListAllRolesRequest $request |
||
69 | * @param \App\Containers\Authorization\Actions\ListAllRolesAction $action |
||
70 | * |
||
71 | * @return \Dingo\Api\Http\Response |
||
72 | */ |
||
73 | public function listAllRoles(ListAllRolesRequest $request, ListAllRolesAction $action) |
||
79 | |||
80 | /** |
||
81 | * @param \App\Containers\Authorization\UI\API\Requests\GetRoleRequest $request |
||
82 | * @param \App\Containers\Authorization\Actions\GetRoleAction $action |
||
83 | * |
||
84 | * @return \Dingo\Api\Http\Response |
||
85 | */ |
||
86 | public function getRole(GetRoleRequest $request, GetRoleAction $action) |
||
92 | |||
93 | /** |
||
94 | * @param \App\Containers\Authorization\UI\API\Requests\AssignUserToRoleRequest $request |
||
95 | * @param \App\Containers\Authorization\Actions\AssignUserToRoleAction $action |
||
96 | * |
||
97 | * @return \Dingo\Api\Http\Response |
||
98 | */ |
||
99 | public function assignUserToRole(AssignUserToRoleRequest $request, AssignUserToRoleAction $action) |
||
105 | |||
106 | /** |
||
107 | * @param \App\Containers\Authorization\UI\API\Requests\DeleteRoleRequest $request |
||
108 | * @param \App\Containers\Authorization\Actions\DeleteRoleAction $action |
||
109 | * |
||
110 | * @return \Dingo\Api\Http\Response |
||
111 | */ |
||
112 | public function deleteRole(DeleteRoleRequest $request, DeleteRoleAction $action) |
||
120 | |||
121 | /** |
||
122 | * @param \App\Containers\Authorization\UI\API\Requests\RevokeUserFromRoleRequest $request |
||
123 | * @param \App\Containers\Authorization\Actions\RevokeUserFromRoleAction $action |
||
124 | * |
||
125 | * @return \Dingo\Api\Http\Response |
||
126 | */ |
||
127 | public function revokeRoleFromUser(RevokeUserFromRoleRequest $request, RevokeUserFromRoleAction $action) |
||
133 | |||
134 | /** |
||
135 | * @param \App\Containers\Authorization\UI\API\Requests\AttachPermissionToRoleRequest $request |
||
136 | * @param \App\Containers\Authorization\Actions\AttachPermissionsToRoleAction $action |
||
137 | * |
||
138 | * @return \Dingo\Api\Http\Response |
||
139 | */ |
||
140 | public function attachPermissionToRole( |
||
148 | |||
149 | /** |
||
150 | * @param \App\Containers\Authorization\UI\API\Requests\DetachPermissionToRoleRequest $request |
||
151 | * @param \App\Containers\Authorization\Actions\DetachPermissionsFromRoleAction $action |
||
152 | * |
||
153 | * @return \Dingo\Api\Http\Response |
||
154 | */ |
||
155 | public function detachPermissionFromRole( |
||
163 | |||
164 | /** |
||
165 | * @param \App\Containers\Authorization\UI\API\Requests\CreateRoleRequest $request |
||
166 | * @param \App\Containers\Authorization\Actions\CreateRoleAction $action |
||
167 | * |
||
168 | * @return \Dingo\Api\Http\Response |
||
169 | */ |
||
170 | public function createRole(CreateRoleRequest $request, CreateRoleAction $action) |
||
176 | |||
177 | /** |
||
178 | * @param \App\Containers\Authorization\UI\API\Requests\CreatePermissionRequest $request |
||
179 | * @param \App\Containers\Authorization\Actions\CreatePermissionAction $action |
||
180 | * |
||
181 | * @return \Dingo\Api\Http\Response |
||
182 | */ |
||
183 | public function createPermission(CreatePermissionRequest $request, CreatePermissionAction $action) |
||
189 | |||
190 | |||
191 | } |
||
192 |
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.