Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | #[ORM\Entity] |
||
13 | #[ORM\HasLifecycleCallbacks] |
||
14 | class PassportRole |
||
15 | { |
||
16 | use HasId; |
||
17 | use HasRole; |
||
18 | |||
19 | #[ORM\Column(type: 'integer')] |
||
20 | private int $userId; |
||
21 | |||
22 | #[ORM\Column(type: 'integer', nullable: true)] |
||
23 | private $entityId; |
||
24 | |||
25 | #[ORM\Column(type: 'integer', nullable: true)] |
||
26 | private ?int $approvedById = null; |
||
27 | |||
28 | use HasCreatedAtDate; |
||
29 | |||
30 | 1 | public function getUserId(): int |
|
31 | { |
||
32 | 1 | return $this->userId; |
|
33 | } |
||
34 | |||
35 | 2 | public function setUserId(int $userId): void |
|
38 | } |
||
39 | |||
40 | 2 | public function getEntityId(): ?int |
|
41 | { |
||
42 | 2 | return $this->entityId; |
|
43 | } |
||
44 | |||
45 | 2 | public function setEntityId(int $entityId): void |
|
46 | { |
||
47 | 2 | $this->entityId = $entityId; |
|
48 | } |
||
49 | |||
50 | 1 | public function getApprovedById(): ?int |
|
51 | { |
||
52 | 1 | return $this->approvedById; |
|
53 | } |
||
54 | |||
55 | 1 | public function setApprovedById(?int $approvedById): void |
|
58 | } |
||
59 | } |
||
60 |