Detector::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 mixed has(Model $model, string $relation = null)
9
 * @method static mixed hasOrLevel(Model $model, int $min, string $relation = null)
10
 * @method static mixed level(int $min)
11
 * @method static mixed owner(Model $model, string $foreign = null)
12
 * @method static mixed ownerOrLevel(Model $model, int $min, string $foreign = null)
13
 * @method static self scope($scope)
14
 * @method static mixed share(Model $model, string $modelRelation, string $relation)
15
 * @method static self subject(Authorizable $auth)
16
 */
17
class Detector extends Facade
18
{
19
20
    /**
21
     * Get the registered name of the component.
22
     *
23
     * @return string
24
     */
25
    protected static function getFacadeAccessor()
26
    {
27
        return 'mrluke-privileges-detector';
28
    }
29
}
30