Completed
Push — master ( 20c83d...440e81 )
by Derek Stephen
01:23
created

Passport::getEntitlements()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php declare(strict_types=1);
2
3
namespace Del\Passport;
4
5
use Del\Passport\PassportInterface;
6
7
class Passport implements PassportInterface
8
{
9
    /** @var int $userId */
10
    private $userId;
11
12
    /** @var array $entitlements */
13
    private $entitlements;
14
15
    public function __construct(int $id, array $entitlements)
16
    {
17
        $this->userId = $id;
18
        $this->entitlements = $entitlements;
19
    }
20
21
    public function getEntitlements(): array
22
    {
23
        return $this->entitlements;
24
    }
25
26
    /**
27
     * @return int
28
     */
29
    public function getUserId(): int
30
    {
31
        return $this->userId;
32
    }
33
}