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

Revoked   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 50%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 22
ccs 4
cts 8
cp 0.5
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getGrantableCollection() 0 4 1
A getOwner() 0 4 1
1
<?php
2
/**
3
 * Created on 06/03/18 by enea dhack.
4
 */
5
6
namespace Enea\Authorization\Events;
7
8
use Enea\Authorization\Contracts\GrantableOwner;
9
use Illuminate\Support\Collection;
10
11
class Revoked implements Operation
12
{
13
    private $grantableCollection;
14
15
    private $owner;
16
17 9
    public function __construct(GrantableOwner $owner, Collection $grantableCollection)
18
    {
19 9
        $this->owner = $owner;
20 9
        $this->grantableCollection = $grantableCollection;
21 9
    }
22
23
    public function getGrantableCollection(): Collection
24
    {
25
        return $this->grantableCollection;
26
    }
27
28
    public function getOwner(): GrantableOwner
29
    {
30
        return $this->owner;
31
    }
32
}
33
34