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