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

Granted::getOwner()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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 Granted implements Operation
15
{
16
    private $grantableCollection;
17
18
    private $owner;
19
20 32
    public function __construct(GrantableOwner $owner, Collection $grantableCollection)
21
    {
22 32
        $this->owner = $owner;
23 32
        $this->grantableCollection = $grantableCollection;
24 32
    }
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