Manager::getFacadeAccessor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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