1 | <?php |
||
23 | class Controller extends PortApiController |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * @param \App\Containers\Authorization\UI\API\Requests\ListAllPermissionsRequest $request |
||
28 | * @param \App\Containers\Authorization\Actions\ListAllPermissionsAction $action |
||
29 | */ |
||
30 | public function listAllPermissions(ListAllPermissionsRequest $request, ListAllPermissionsAction $action) |
||
36 | |||
37 | /** |
||
38 | * @param \App\Containers\Authorization\UI\API\Requests\GetPermissionRequest $request |
||
39 | * @param \App\Containers\Authorization\Actions\GetPermissionAction $action |
||
40 | */ |
||
41 | public function getPermission(GetPermissionRequest $request, GetPermissionAction $action) |
||
47 | |||
48 | /** |
||
49 | * @param \App\Containers\Authorization\UI\API\Requests\ListAllRolesRequest $request |
||
50 | * @param \App\Containers\Authorization\Actions\ListAllRolesAction $action |
||
51 | * |
||
52 | * @return \Dingo\Api\Http\Response |
||
53 | */ |
||
54 | public function listAllRoles(ListAllRolesRequest $request, ListAllRolesAction $action) |
||
60 | |||
61 | /** |
||
62 | * @param \App\Containers\Authorization\UI\API\Requests\GetRoleRequest $request |
||
63 | * @param \App\Containers\Authorization\Actions\GetRoleAction $action |
||
64 | */ |
||
65 | public function getRole(GetRoleRequest $request, GetRoleAction $action) |
||
71 | |||
72 | public function assignUserToRole() |
||
76 | |||
77 | public function attachPermissionToRole() |
||
81 | |||
82 | public function createRole() |
||
86 | |||
87 | public function createPermission() |
||
91 | |||
92 | } |
||
93 |
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.