| Total Complexity | 5 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class AgendaEventInvitee |
||
| 18 | { |
||
| 19 | use TimestampableTypedEntity; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | * |
||
| 24 | * @ORM\Id() |
||
| 25 | * @ORM\Column(type="bigint") |
||
| 26 | * @ORM\GeneratedValue |
||
| 27 | */ |
||
| 28 | protected $id; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var AgendaEventInvitation|null |
||
| 32 | * |
||
| 33 | * @ORM\ManyToOne(targetEntity="AgendaEventInvitation", inversedBy="invitees") |
||
| 34 | * @ORM\JoinColumn(name="invitation_id", referencedColumnName="id", onDelete="CASCADE") |
||
| 35 | */ |
||
| 36 | protected $invitation; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var User|null |
||
| 40 | * |
||
| 41 | * @ORM\ManyToOne(targetEntity="Chamilo\UserBundle\Entity\User") |
||
| 42 | * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=true, onDelete="SET NULL") |
||
| 43 | */ |
||
| 44 | protected $user; |
||
| 45 | |||
| 46 | public function getId(): int |
||
| 47 | { |
||
| 48 | return $this->id; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getInvitation(): ?AgendaEventInvitation |
||
| 52 | { |
||
| 53 | return $this->invitation; |
||
| 54 | } |
||
| 55 | |||
| 56 | public function setInvitation(?AgendaEventInvitation $invitation): AgendaEventInvitee |
||
| 57 | { |
||
| 58 | $this->invitation = $invitation; |
||
| 59 | |||
| 60 | return $this; |
||
| 61 | } |
||
| 62 | |||
| 63 | public function getUser(): ?User |
||
| 66 | } |
||
| 67 | |||
| 68 | public function setUser(?User $user): AgendaEventInvitee |
||
| 73 | } |
||
| 74 | } |
||
| 75 |