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 ArrayCollection|Translation[] |
||
120 | * |
||
121 | * @ORM\OneToMany( |
||
122 | * targetEntity="AppBundle\Entity\Translations\PerformanceEventTranslation", |
||
123 | * mappedBy="object", |
||
124 | * cascade={"persist", "remove"} |
||
125 | * ) |
||
126 | */ |
||
127 | protected $translations; |
||
128 | |||
129 | /** |
||
130 | 4 | * @var PriceCategory[] |
|
131 | * |
||
132 | 4 | * @Assert\Valid |
|
133 | * @ORM\OneToMany( |
||
134 | 4 | * targetEntity="AppBundle\Entity\PriceCategory", |
|
135 | * mappedBy="performanceEvent", |
||
136 | * cascade={"all"}, |
||
137 | * orphanRemoval=true |
||
138 | * ) |
||
139 | */ |
||
140 | protected $priceCategories; |
||
141 | |||
142 | 10 | public function __construct() |
|
147 | |||
148 | /** |
||
149 | * Unset translations |
||
150 | * |
||
151 | * @return PerformanceEvent |
||
152 | */ |
||
153 | 7 | public function unsetTranslations() |
|
159 | |||
160 | /** |
||
161 | * Get id |
||
162 | * |
||
163 | * @return integer |
||
164 | */ |
||
165 | 14 | public function getId() |
|
169 | |||
170 | /** |
||
171 | * Set dateTime |
||
172 | * |
||
173 | * @param \DateTime $dateTime |
||
174 | * @return PerformanceEvent |
||
175 | */ |
||
176 | public function setDateTime($dateTime) |
||
182 | |||
183 | /** |
||
184 | * Get dateTime |
||
185 | * |
||
186 | * @return \DateTime |
||
187 | */ |
||
188 | 6 | public function getDateTime() |
|
192 | |||
193 | 2 | /** |
|
194 | * Set performance |
||
195 | 2 | * |
|
196 | 1 | * @param \AppBundle\Entity\Performance $performance |
|
197 | * @return PerformanceEvent |
||
198 | */ |
||
199 | 1 | public function setPerformance(\AppBundle\Entity\Performance $performance = null) |
|
205 | 4 | ||
206 | /** |
||
207 | 4 | * Get performance |
|
208 | * |
||
209 | * @return \AppBundle\Entity\Performance |
||
210 | */ |
||
211 | public function getPerformance() |
||
215 | |||
216 | public function __toString() |
||
224 | |||
225 | /** |
||
226 | * @return mixed |
||
227 | */ |
||
228 | public function getYear() |
||
232 | |||
233 | /** |
||
234 | * @param mixed $year |
||
235 | */ |
||
236 | public function setYear($year) |
||
240 | |||
241 | /** |
||
242 | * @return int |
||
243 | */ |
||
244 | public function getMonth() |
||
248 | |||
249 | /** |
||
250 | * @param int $month |
||
251 | */ |
||
252 | public function setMonth($month) |
||
256 | |||
257 | /** |
||
258 | * @return int |
||
259 | */ |
||
260 | public function getDay() |
||
264 | |||
265 | /** |
||
266 | * @param int $day |
||
267 | */ |
||
268 | public function setDay($day) |
||
272 | |||
273 | /** |
||
274 | * @return string |
||
275 | */ |
||
276 | public function getTime() |
||
280 | 4 | ||
281 | /** |
||
282 | * @param string $time |
||
283 | */ |
||
284 | public function setTime($time) |
||
288 | |||
289 | /** |
||
290 | * @return Venue |
||
291 | */ |
||
292 | public function getVenue() |
||
296 | |||
297 | /** |
||
298 | * @param Venue $venue |
||
299 | * @return PerformanceEvent |
||
300 | */ |
||
301 | public function setVenue(Venue $venue) |
||
307 | |||
308 | /** |
||
309 | * @param PriceCategory $priceCategory |
||
310 | * @return PerformanceEvent |
||
311 | */ |
||
312 | public function addPriceCategory(PriceCategory $priceCategory) |
||
318 | |||
319 | /** |
||
320 | * @param PriceCategory $priceCategory |
||
321 | */ |
||
322 | public function removePriceCategories(PriceCategory $priceCategory) |
||
326 | |||
327 | /** |
||
328 | * @return Collection |
||
329 | */ |
||
330 | public function getPriceCategories() |
||
334 | |||
335 | /** |
||
336 | * @param PriceCategory[]|ArrayCollection $priceCategory |
||
337 | */ |
||
338 | public function setPriceCategories($priceCategory) |
||
342 | } |
||
343 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..