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

Revoked::getGrantableCollection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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