1 | <?php namespace Arcanesoft\Auth\Http\Controllers\Foundation; |
||
13 | class PermissionsController extends FoundationController |
||
14 | { |
||
15 | /* ------------------------------------------------------------------------------------------------ |
||
16 | | Properties |
||
17 | | ------------------------------------------------------------------------------------------------ |
||
18 | */ |
||
19 | /** @var int */ |
||
20 | protected $perPage = 30; |
||
21 | |||
22 | /* ------------------------------------------------------------------------------------------------ |
||
23 | | Constructor |
||
24 | | ------------------------------------------------------------------------------------------------ |
||
25 | */ |
||
26 | /** |
||
27 | * Instantiate the controller. |
||
28 | */ |
||
29 | public function __construct() |
||
36 | |||
37 | /* ------------------------------------------------------------------------------------------------ |
||
38 | | Main Functions |
||
39 | | ------------------------------------------------------------------------------------------------ |
||
40 | */ |
||
41 | public function index(Permission $permission) |
||
53 | |||
54 | public function group(Permission $permission, PermissionsGroup $group) |
||
71 | |||
72 | public function show(Permission $permission) |
||
82 | } |
||
83 |
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: