1 | <?php |
||
36 | class Participation |
||
37 | { |
||
38 | /** |
||
39 | * @var integer |
||
40 | * |
||
41 | * @ORM\Column(name="id", type="integer") |
||
42 | * @ORM\Id |
||
43 | * @ORM\GeneratedValue(strategy="AUTO") |
||
44 | */ |
||
45 | private $id; |
||
46 | |||
47 | /** |
||
48 | * @ORM\ManyToOne(targetEntity="Participant", inversedBy="participations") |
||
49 | */ |
||
50 | private $participant; |
||
51 | |||
52 | /** |
||
53 | * @ORM\ManyToOne(targetEntity="Event", inversedBy="participations") |
||
54 | */ |
||
55 | private $event; |
||
56 | |||
57 | /** |
||
58 | * @ORM\ManyToOne(targetEntity="Choice", inversedBy="participations") |
||
59 | */ |
||
60 | private $choice; |
||
61 | |||
62 | /** |
||
63 | * Get id |
||
64 | * |
||
65 | * @return integer |
||
66 | */ |
||
67 | public function getId() |
||
71 | |||
72 | /** |
||
73 | * Set participant |
||
74 | * |
||
75 | * @param Participant $participant |
||
76 | * @return Participation |
||
77 | */ |
||
78 | public function setParticipant(Participant $participant = null) |
||
84 | |||
85 | /** |
||
86 | * Get participant |
||
87 | * |
||
88 | * @return Participant |
||
89 | */ |
||
90 | public function getParticipant() |
||
94 | |||
95 | /** |
||
96 | * Set event |
||
97 | * |
||
98 | * @param Event $event |
||
99 | * @return Participation |
||
100 | */ |
||
101 | public function setEvent(Event $event = null) |
||
107 | |||
108 | /** |
||
109 | * Get event |
||
110 | * |
||
111 | * @return Event |
||
112 | */ |
||
113 | public function getEvent() |
||
117 | |||
118 | /** |
||
119 | * Set choice |
||
120 | * |
||
121 | * @param Choice $choice |
||
122 | * @return Participation |
||
123 | */ |
||
124 | public function setChoice(Choice $choice = null) |
||
130 | |||
131 | /** |
||
132 | * Get choice |
||
133 | * |
||
134 | * @return Choice |
||
135 | */ |
||
136 | public function getChoice() |
||
140 | } |
||
141 |