Completed
Push — develop ( 4e8497...df799e )
by Enea
02:52
created

Revoked   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 20
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

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