@@ -7,11 +7,23 @@ |
||
7 | 7 | |
8 | 8 | interface RoleContract extends Grantable, Permissible, PermissionsOwner |
9 | 9 | { |
10 | + /** |
|
11 | + * @return void |
|
12 | + */ |
|
10 | 13 | public function grant(PermissionContract $permission): void; |
11 | 14 | |
15 | + /** |
|
16 | + * @return void |
|
17 | + */ |
|
12 | 18 | public function revoke(PermissionContract $permission): void; |
13 | 19 | |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
14 | 23 | public function syncGrant(array $permissions): void; |
15 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
16 | 28 | public function syncRevoke(array $permissions): void; |
17 | 29 | } |
@@ -21,6 +21,9 @@ |
||
21 | 21 | parent::__construct($this->buildMessage()); |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @return string|null |
|
26 | + */ |
|
24 | 27 | protected function buildMessage() |
25 | 28 | { |
26 | 29 | return "The {$this->grantable} model can not be assigned to {$this->repository} repository."; |