@@ -16,7 +16,7 @@ |
||
16 | 16 | * LEVEL |
17 | 17 | * A Level has many users |
18 | 18 | * |
19 | - * @return mixed |
|
19 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
20 | 20 | */ |
21 | 21 | public function users() |
22 | 22 | { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * PERMISSION |
29 | 29 | * A permission belongs to many users |
30 | 30 | * |
31 | - * @return mixed |
|
31 | + * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
|
32 | 32 | */ |
33 | 33 | public function users() |
34 | 34 | { |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | * associated to a user by direct or |
263 | 263 | * inheritance |
264 | 264 | * |
265 | - * @return mixed |
|
265 | + * @return Collection |
|
266 | 266 | */ |
267 | 267 | protected function cacheGetAllPermissions() |
268 | 268 | { |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | * USER & LEVEL |
286 | 286 | * Return a collection of permissions that |
287 | 287 | * are inherited from a higher level |
288 | - * @return mixed |
|
288 | + * @return Collection |
|
289 | 289 | */ |
290 | 290 | protected function cacheGetInheritedPermissions() |
291 | 291 | { |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | * Modify a given set of permissions, given the action to be taken |
348 | 348 | * |
349 | 349 | * @param $permissions |
350 | - * @param $action |
|
350 | + * @param string $action |
|
351 | 351 | * @return mixed |
352 | 352 | */ |
353 | 353 | protected function modifyPermissions($permissions, $action) |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | * |
381 | 381 | * @param $permissions |
382 | 382 | * @param $action |
383 | - * @param $model |
|
383 | + * @param string $model |
|
384 | 384 | * @return mixed |
385 | 385 | * @throws PermissionNotFoundException |
386 | 386 | */ |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | * USER & LEVEL |
409 | 409 | * Helper function to handle adding or negating permissions |
410 | 410 | * |
411 | - * @param $model |
|
411 | + * @param string $model |
|
412 | 412 | * @param $permissionObjects |
413 | 413 | */ |
414 | 414 | protected function addOrNegate($model, $permissionObjects, $action) |
@@ -424,7 +424,7 @@ discard block |
||
424 | 424 | * USER & LEVEL |
425 | 425 | * Helper function to handle removing permissions |
426 | 426 | * |
427 | - * @param $model |
|
427 | + * @param string $model |
|
428 | 428 | * @param $permissionObjects |
429 | 429 | */ |
430 | 430 | protected function remove($model, $permissionObjects) |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | * USER & LEVEL |
444 | 444 | * Help function to handle syncing permissions |
445 | 445 | * |
446 | - * @param $model |
|
446 | + * @param string $model |
|
447 | 447 | * @param $permissionObjects |
448 | 448 | */ |
449 | 449 | protected function sync($model, $permissionObjects) |