Completed
Branch develop (de93ba)
by Enea
01:44
created
src/Contracts/RoleContract.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -7,11 +7,23 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Exceptions/NonAssignableGrantableModelException.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
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.";
Please login to merge, or discard this patch.