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