Completed
Push — master ( 72b000...20c83d )
by Derek Stephen
02:27
created

Passport::getUserId()   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\Entity;
4
5
use Del\Passport\PassportInterface;
6
use Doctrine\Common\Collections\Collection;
7
8
class Passport implements PassportInterface
9
{
10
    /**
11
     * @ORM\Column(type="integer")
12
     * @var int $userId
13
     */
14
    private $userId;
15
16
    public function getEntitlements(): Collection
17
    {
18
        return Collection::class;
19
    }
20
21
    /**
22
     * @return int
23
     */
24
    public function getUserId(): int
25
    {
26
        return $this->userId;
27
    }
28
}