Manager   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
namespace Mrluke\Privileges\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
7
/**
8
 * @method static void assignRole(Authorizable $auth, $role)
9
 * @method static int considerPermission(Authorizable $auth, $scope)
10
 * @method static array considerRestriction(Authorizable $auth)
11
 * @method static mixed detectScope(string $model)
12
 * @method static string getAuthorizableModel()
13
 * @method static array getAuthorizableMigration()
14
 * @method static mixed getPermission(Permitable $subject, string $scope)
15
 * @method static void grantPermission(Permitable $subject, string $scope, int $level)
16
 * @method static bool hasPermission(Permitable $subject, string $scope)
17
 * @method static bool hasRole(Permitable $subject, $role)
18
 * @method static void regainPermission(Permitable $subject, string $scope)
19
 * @method static void removeRole(Authorizable $auth, $role)
20
 */
21
class Manager extends Facade
22
{
23
    /**
24
     * Get the registered name of the component.
25
     *
26
     * @return string
27
     */
28
    protected static function getFacadeAccessor()
29
    {
30
        return 'mrluke-privileges-manager';
31
    }
32
}
33