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

Authorizer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 4 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