1 | <?php |
||
30 | class PerformanceEvent extends AbstractPersonalTranslatable implements TranslatableInterface |
||
31 | { |
||
32 | use TimestampableTrait, BlameableEntity, DeletedByTrait; |
||
33 | |||
34 | /** |
||
35 | * @var integer |
||
36 | * |
||
37 | * @ORM\Column(name="id", type="integer") |
||
38 | * @ORM\Id |
||
39 | * @ORM\GeneratedValue(strategy="AUTO") |
||
40 | * |
||
41 | * @Serializer\Groups({"get_ticket"}) |
||
42 | * @Type("integer") |
||
43 | * @Expose |
||
44 | */ |
||
45 | private $id; |
||
46 | |||
47 | /** |
||
48 | * @var Performance |
||
49 | * |
||
50 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Performance", inversedBy="performanceEvents") |
||
51 | * |
||
52 | * @Serializer\Groups({"get_ticket"}) |
||
53 | * @Type("AppBundle\Entity\Performance") |
||
54 | * @Expose |
||
55 | */ |
||
56 | private $performance; |
||
57 | |||
58 | /** |
||
59 | * @var /Datetime |
||
60 | * |
||
61 | * @Assert\NotBlank() |
||
62 | * @ORM\Column(type="datetime") |
||
63 | * |
||
64 | * @Serializer\Groups({"get_ticket"}) |
||
65 | * @Type("DateTime") |
||
66 | * @Expose |
||
67 | */ |
||
68 | private $dateTime; |
||
69 | |||
70 | /** |
||
71 | * @var Venue |
||
72 | * |
||
73 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Venue", inversedBy="performanceEvents") |
||
74 | * |
||
75 | * @Serializer\Groups({"get_ticket"}) |
||
76 | * @Type("AppBundle\Entity\Venue") |
||
77 | * @Expose |
||
78 | */ |
||
79 | private $venue; |
||
80 | |||
81 | /** |
||
82 | * @var int |
||
83 | * |
||
84 | * @Serializer\Groups({"get_ticket"}) |
||
85 | * @Type("integer") |
||
86 | * @Expose |
||
87 | * @Accessor(getter="getYear") |
||
88 | */ |
||
89 | private $year; |
||
90 | |||
91 | /** |
||
92 | * @var int |
||
93 | * |
||
94 | * @Serializer\Groups({"get_ticket"}) |
||
95 | * @Expose |
||
96 | * @Accessor(getter="getMonth") |
||
97 | */ |
||
98 | private $month; |
||
99 | |||
100 | /** |
||
101 | * @var int |
||
102 | * |
||
103 | * @Serializer\Groups({"get_ticket"}) |
||
104 | * @Expose |
||
105 | * @Accessor(getter="getDay") |
||
106 | */ |
||
107 | private $day; |
||
108 | |||
109 | /** |
||
110 | * @var string |
||
111 | * |
||
112 | * @Serializer\Groups({"get_ticket"}) |
||
113 | * @Expose |
||
114 | * @Accessor(getter="getTime") |
||
115 | */ |
||
116 | private $time; |
||
117 | |||
118 | /** |
||
119 | * @var string |
||
120 | * @Assert\NotBlank() |
||
121 | * @ORM\Column(type="string", length=10, nullable=false) |
||
122 | * |
||
123 | * @Type("string") |
||
124 | * @Expose |
||
125 | */ |
||
126 | private $setNumber; |
||
127 | |||
128 | /** |
||
129 | * @var ArrayCollection|Translation[] |
||
130 | 4 | * |
|
131 | * @ORM\OneToMany( |
||
132 | 4 | * targetEntity="AppBundle\Entity\Translations\PerformanceEventTranslation", |
|
133 | * mappedBy="object", |
||
134 | 4 | * cascade={"persist", "remove"} |
|
135 | * ) |
||
136 | */ |
||
137 | protected $translations; |
||
138 | |||
139 | /** |
||
140 | * @var ArrayCollection|PriceCategory[] |
||
141 | * |
||
142 | 10 | * @Assert\Valid |
|
143 | * @ORM\OneToMany( |
||
144 | 10 | * targetEntity="AppBundle\Entity\PriceCategory", |
|
145 | * mappedBy="performanceEvent", |
||
146 | * cascade={"persist"}, |
||
147 | * orphanRemoval=true |
||
148 | * ) |
||
149 | */ |
||
150 | protected $priceCategories; |
||
151 | |||
152 | public function __construct() |
||
157 | 7 | ||
158 | /** |
||
159 | * Unset translations |
||
160 | * |
||
161 | * @return PerformanceEvent |
||
162 | */ |
||
163 | public function unsetTranslations() |
||
169 | |||
170 | /** |
||
171 | * Get id |
||
172 | * |
||
173 | * @return integer |
||
174 | */ |
||
175 | public function getId() |
||
179 | |||
180 | /** |
||
181 | * Set dateTime |
||
182 | * |
||
183 | * @param \DateTime $dateTime |
||
184 | * @return PerformanceEvent |
||
185 | */ |
||
186 | public function setDateTime($dateTime) |
||
192 | |||
193 | 2 | /** |
|
194 | * Get dateTime |
||
195 | 2 | * |
|
196 | 1 | * @return \DateTime |
|
197 | */ |
||
198 | public function getDateTime() |
||
202 | |||
203 | /** |
||
204 | * Set performance |
||
205 | 4 | * |
|
206 | * @param \AppBundle\Entity\Performance $performance |
||
207 | 4 | * @return PerformanceEvent |
|
208 | */ |
||
209 | public function setPerformance(\AppBundle\Entity\Performance $performance = null) |
||
215 | |||
216 | /** |
||
217 | * Get performance |
||
218 | * |
||
219 | * @return \AppBundle\Entity\Performance |
||
220 | */ |
||
221 | 4 | public function getPerformance() |
|
225 | |||
226 | public function __toString() |
||
234 | |||
235 | /** |
||
236 | * @return mixed |
||
237 | 4 | */ |
|
238 | public function getYear() |
||
242 | |||
243 | /** |
||
244 | * @param mixed $year |
||
245 | */ |
||
246 | public function setYear($year) |
||
250 | |||
251 | /** |
||
252 | * @return int |
||
253 | 4 | */ |
|
254 | public function getMonth() |
||
258 | |||
259 | /** |
||
260 | * @param int $month |
||
261 | */ |
||
262 | public function setMonth($month) |
||
266 | |||
267 | /** |
||
268 | * @return int |
||
269 | 7 | */ |
|
270 | public function getDay() |
||
274 | |||
275 | /** |
||
276 | * @param int $day |
||
277 | 4 | */ |
|
278 | public function setDay($day) |
||
282 | |||
283 | /** |
||
284 | * @return string |
||
285 | */ |
||
286 | public function getTime() |
||
290 | |||
291 | /** |
||
292 | * @param string $time |
||
293 | */ |
||
294 | public function setTime($time) |
||
298 | |||
299 | /** |
||
300 | * @return Venue |
||
301 | */ |
||
302 | public function getVenue() |
||
306 | |||
307 | /** |
||
308 | * @param Venue $venue |
||
309 | * @return PerformanceEvent |
||
310 | */ |
||
311 | public function setVenue(Venue $venue) |
||
317 | |||
318 | /** |
||
319 | * @param PriceCategory $priceCategory |
||
320 | * @return PerformanceEvent |
||
321 | */ |
||
322 | public function addPriceCategory(PriceCategory $priceCategory) |
||
328 | |||
329 | /** |
||
330 | * @param PriceCategory $priceCategory |
||
331 | */ |
||
332 | public function removePriceCategories(PriceCategory $priceCategory) |
||
336 | |||
337 | /** |
||
338 | * @return Collection |
||
339 | */ |
||
340 | public function getPriceCategories() |
||
344 | |||
345 | /** |
||
346 | * @param PriceCategory[]|ArrayCollection $priceCategory |
||
347 | */ |
||
348 | public function setPriceCategories($priceCategory) |
||
352 | |||
353 | /** |
||
354 | * @return string |
||
355 | */ |
||
356 | public function getSetNumber() |
||
360 | |||
361 | /** |
||
362 | * @param string $setNumber |
||
363 | */ |
||
364 | public function setSetNumber($setNumber) |
||
368 | } |
||
369 |