| Total Complexity | 6 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | #[ORM\Entity] |
||
| 11 | class PassportRole |
||
| 12 | { |
||
| 13 | use HasId; |
||
| 14 | |||
| 15 | #[ORM\Column(type: 'integer')] |
||
| 16 | private int $userId; |
||
| 17 | |||
| 18 | #[ORM\ManyToOne(targetEntity: Role::class)] |
||
| 19 | private Role $role; |
||
| 20 | |||
| 21 | #[ORM\Column(type: 'integer')] |
||
| 22 | private $entityId; |
||
| 23 | |||
| 24 | 1 | public function getUserId(): int |
|
| 25 | { |
||
| 26 | 1 | return $this->userId; |
|
| 27 | } |
||
| 28 | |||
| 29 | 2 | public function setUserId(int $userId): void |
|
| 32 | } |
||
| 33 | |||
| 34 | 2 | public function getRole(): Role |
|
| 37 | } |
||
| 38 | |||
| 39 | 2 | public function setRole(Role $role): void |
|
| 40 | { |
||
| 41 | 2 | $this->role = $role; |
|
| 42 | } |
||
| 43 | |||
| 44 | 2 | public function getEntityId(): ?int |
|
| 45 | { |
||
| 46 | 2 | return $this->entityId; |
|
| 47 | } |
||
| 48 | |||
| 49 | 2 | public function setEntityId(int $entityId): void |
|
| 52 | } |
||
| 53 | } |
||
| 54 |