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

Passport   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 21
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getEntitlements() 0 4 1
A getUserId() 0 4 1
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
}