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