1 | <?php |
||
29 | class PerformanceEvent extends AbstractPersonalTranslatable implements TranslatableInterface |
||
30 | { |
||
31 | use TimestampableTrait, BlameableEntity, DeletedByTrait; |
||
32 | |||
33 | /** |
||
34 | * @var integer |
||
35 | * |
||
36 | * @ORM\Column(name="id", type="integer") |
||
37 | * @ORM\Id |
||
38 | * @ORM\GeneratedValue(strategy="AUTO") |
||
39 | * @Type("integer") |
||
40 | * @Expose |
||
41 | */ |
||
42 | private $id; |
||
43 | |||
44 | /** |
||
45 | * @var Performance |
||
46 | * |
||
47 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Performance", inversedBy="performanceEvents") |
||
48 | * @Type("AppBundle\Entity\Performance") |
||
49 | * @Expose |
||
50 | */ |
||
51 | private $performance; |
||
52 | |||
53 | /** |
||
54 | * @var /Datetime |
||
55 | * |
||
56 | * @Assert\NotBlank() |
||
57 | * @ORM\Column(type="datetime") |
||
58 | * @Type("DateTime") |
||
59 | * @Expose |
||
60 | */ |
||
61 | private $dateTime; |
||
62 | |||
63 | /** |
||
64 | * @var Venue |
||
65 | * |
||
66 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Venue", inversedBy="performanceEvents") |
||
67 | * @Type("AppBundle\Entity\Venue") |
||
68 | * @Expose |
||
69 | */ |
||
70 | private $venue; |
||
71 | |||
72 | /** |
||
73 | * @var int |
||
74 | * |
||
75 | * @Type("integer") |
||
76 | * @Expose |
||
77 | * @Accessor(getter="getYear") |
||
78 | */ |
||
79 | private $year; |
||
80 | |||
81 | /** |
||
82 | * @var int |
||
83 | * |
||
84 | * @Expose |
||
85 | * @Accessor(getter="getMonth") |
||
86 | */ |
||
87 | private $month; |
||
88 | |||
89 | /** |
||
90 | * @var int |
||
91 | * |
||
92 | * @Expose |
||
93 | * @Accessor(getter="getDay") |
||
94 | */ |
||
95 | private $day; |
||
96 | |||
97 | /** |
||
98 | * @var string |
||
99 | * |
||
100 | * @Expose |
||
101 | * @Accessor(getter="getTime") |
||
102 | */ |
||
103 | private $time; |
||
104 | |||
105 | /** |
||
106 | * @var ArrayCollection|Translation[] |
||
107 | * |
||
108 | * @ORM\OneToMany( |
||
109 | * targetEntity="AppBundle\Entity\Translations\PerformanceEventTranslation", |
||
110 | * mappedBy="object", |
||
111 | * cascade={"persist", "remove"} |
||
112 | * ) |
||
113 | */ |
||
114 | protected $translations; |
||
115 | |||
116 | /** |
||
117 | * @var Collection|PriceCategory[] |
||
118 | * |
||
119 | * @ORM\OneToMany( |
||
120 | * targetEntity="AppBundle\Entity\PriceCategory", |
||
121 | * mappedBy="performanceEvent", |
||
122 | * cascade={"persist", "remove"} |
||
123 | * ) |
||
124 | */ |
||
125 | protected $priceCategories; |
||
126 | |||
127 | public function __construct() |
||
132 | 4 | ||
133 | /** |
||
134 | 4 | * Unset translations |
|
135 | * |
||
136 | * @return PerformanceEvent |
||
137 | */ |
||
138 | public function unsetTranslations() |
||
144 | 10 | ||
145 | /** |
||
146 | * Get id |
||
147 | * |
||
148 | * @return integer |
||
149 | */ |
||
150 | public function getId() |
||
154 | |||
155 | 7 | /** |
|
156 | * Set dateTime |
||
157 | 7 | * |
|
158 | * @param \DateTime $dateTime |
||
159 | * @return PerformanceEvent |
||
160 | */ |
||
161 | public function setDateTime($dateTime) |
||
167 | 14 | ||
168 | /** |
||
169 | * Get dateTime |
||
170 | * |
||
171 | * @return \DateTime |
||
172 | */ |
||
173 | public function getDateTime() |
||
177 | |||
178 | /** |
||
179 | * Set performance |
||
180 | * |
||
181 | * @param \AppBundle\Entity\Performance $performance |
||
182 | * @return PerformanceEvent |
||
183 | */ |
||
184 | public function setPerformance(\AppBundle\Entity\Performance $performance = null) |
||
190 | 6 | ||
191 | /** |
||
192 | * Get performance |
||
193 | 2 | * |
|
194 | * @return \AppBundle\Entity\Performance |
||
195 | 2 | */ |
|
196 | 1 | public function getPerformance() |
|
200 | |||
201 | public function __toString() |
||
209 | |||
210 | /** |
||
211 | * @return mixed |
||
212 | */ |
||
213 | public function getYear() |
||
217 | |||
218 | /** |
||
219 | * @param mixed $year |
||
220 | */ |
||
221 | 4 | public function setYear($year) |
|
225 | |||
226 | /** |
||
227 | * @return int |
||
228 | */ |
||
229 | public function getMonth() |
||
233 | |||
234 | /** |
||
235 | * @param int $month |
||
236 | */ |
||
237 | 4 | public function setMonth($month) |
|
241 | |||
242 | /** |
||
243 | * @return int |
||
244 | */ |
||
245 | public function getDay() |
||
249 | |||
250 | /** |
||
251 | * @param int $day |
||
252 | */ |
||
253 | 4 | public function setDay($day) |
|
257 | |||
258 | /** |
||
259 | * @return string |
||
260 | */ |
||
261 | public function getTime() |
||
265 | |||
266 | /** |
||
267 | * @param string $time |
||
268 | */ |
||
269 | 7 | public function setTime($time) |
|
273 | |||
274 | /** |
||
275 | * @return Venue |
||
276 | */ |
||
277 | 4 | public function getVenue() |
|
281 | |||
282 | /** |
||
283 | * @param Venue $venue |
||
284 | * @return PerformanceEvent |
||
285 | */ |
||
286 | public function setVenue(Venue $venue) |
||
292 | |||
293 | /** |
||
294 | * @param PriceCategory $priceCategory |
||
295 | * @return PerformanceEvent |
||
296 | */ |
||
297 | public function addPriceCategory(PriceCategory $priceCategory) |
||
303 | |||
304 | /** |
||
305 | * @param PriceCategory $priceCategory |
||
306 | */ |
||
307 | public function removePriceCategory(PriceCategory $priceCategory) |
||
311 | |||
312 | /** |
||
313 | * @return Collection |
||
314 | */ |
||
315 | public function getPriceCategories() |
||
319 | |||
320 | /** |
||
321 | * @param PriceCategory[]|Collection $priceCategory |
||
322 | */ |
||
323 | public function setPriceCategories($priceCategory) |
||
327 | } |
||
328 |