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

Revoker   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 15/02/18 by enea dhack.
4
 */
5
6
namespace Enea\Authorization\Facades;
7
8
use Enea\Authorization\Contracts\PermissionsOwner;
9
use Enea\Authorization\Contracts\RolesOwner;
10
use Illuminate\Support\Collection;
11
use Illuminate\Support\Facades\Facade;
12
13
/**
14
 * Class Revoker.
15
 *
16
 * @package Enea\Authorization\Facades
17
 * @author enea dhack <[email protected]>
18
 *
19
 * @method static void permissions(PermissionsOwner $owner, Collection $permissions)
20
 * @method static void roles(RolesOwner $owner, Collection $roles)
21
 */
22
class Revoker extends Facade
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27 9
    protected static function getFacadeAccessor()
28
    {
29 9
        return \Enea\Authorization\Operators\Revoker::class;
30
    }
31
}
32