Completed
Push — develop ( 0bdcf1...3b506c )
by Enea
09:31 queued 08:05
created

Authorizer::getFacadeAccessor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Created on 04/03/18 by enea dhack.
4
 */
5
6
namespace Enea\Authorization\Facades;
7
8
use Enea\Authorization\Contracts\{
9
    PermissionsOwner, RolesOwner
10
};
11
use Enea\Authorization\Traits\Authorizable;
12
use Enea\Authorization\Traits\HasRole;
13
use Illuminate\Support\Facades\Facade;
14
15
/**
16
 * Class Authorizer.
17
 *
18
 * @package Enea\Authorization\Facades
19
 * @author enea dhack <[email protected]>
20
 *
21
 * @method static bool can(PermissionsOwner | Authorizable | HasRole $owner, string $permission)
22
 * @method static bool canAny(PermissionsOwner | Authorizable | HasRole $owner, array $permissions)
23
 * @method static bool is(RolesOwner | Authorizable $owner, string $role)
24
 * @method static bool isAny(RolesOwner | Authorizable $owner, array $roles)
25
 */
26
class Authorizer extends Facade
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31 18
    protected static function getFacadeAccessor()
32
    {
33 18
        return \Enea\Authorization\Authorizer::class;
34
    }
35
}
36