| Total Complexity | 5 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class AclPanel extends Component |
||
| 10 | { |
||
| 11 | public $role; |
||
| 12 | public $permissions; |
||
| 13 | public $remaining_models; |
||
| 14 | public $all_models; |
||
| 15 | public $role_models; |
||
| 16 | public $model_name; |
||
| 17 | |||
| 18 | public $listeners = ['permission_deleted' => 'permissionDeleted']; |
||
| 19 | |||
| 20 | public function mount(Role $role) |
||
| 21 | { |
||
| 22 | $this->setACLPanel($role); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function permissionDeleted() |
||
| 26 | { |
||
| 27 | $this->setACLPanel($this->role); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function makeModuleACL() |
||
| 48 | } |
||
| 49 | |||
| 50 | public function render() |
||
| 53 | } |
||
| 54 | |||
| 55 | private function setACLPanel(Role $role) |
||
| 64 |