1 | <?php |
||
27 | class Venue extends AbstractPersonalTranslatable implements TranslatableInterface |
||
28 | { |
||
29 | use TimestampableTrait, DeletedByTrait; |
||
30 | |||
31 | /** |
||
32 | * @var integer |
||
33 | * |
||
34 | * @ORM\Column(name="id", type="integer") |
||
35 | * @ORM\Id |
||
36 | * @ORM\GeneratedValue(strategy="AUTO") |
||
37 | */ |
||
38 | protected $id; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | * @Gedmo\Translatable |
||
43 | * @Assert\NotBlank() |
||
44 | * @ORM\Column(type="string", length=255) |
||
45 | * @Type("string") |
||
46 | * @Expose() |
||
47 | */ |
||
48 | protected $title; |
||
49 | |||
50 | /** |
||
51 | * @var string |
||
52 | * @Gedmo\Translatable |
||
53 | * @Assert\NotBlank() |
||
54 | * @ORM\Column(type="string", length=255) |
||
55 | * @Type("string") |
||
56 | * @Expose() |
||
57 | */ |
||
58 | protected $address; |
||
59 | |||
60 | /** |
||
61 | * @var string |
||
62 | * @Assert\NotBlank() |
||
63 | * @ORM\Column(type="text", nullable=true) |
||
64 | * @Type("string") |
||
65 | * @Expose() |
||
66 | */ |
||
67 | protected $hallTemplate; |
||
68 | |||
69 | /** |
||
70 | * @var ArrayCollection|Translation[] |
||
71 | * |
||
72 | * @ORM\OneToMany( |
||
73 | * targetEntity="AppBundle\Entity\Translations\VenueTranslation", |
||
74 | * mappedBy="object", |
||
75 | * cascade={"persist", "remove"} |
||
76 | * ) |
||
77 | */ |
||
78 | protected $translations; |
||
79 | |||
80 | /** |
||
81 | * @var ArrayCollection|PerformanceEvent[] |
||
82 | * |
||
83 | * @ORM\OneToMany( |
||
84 | * targetEntity="AppBundle\Entity\PerformanceEvent", |
||
85 | * mappedBy="venue", |
||
86 | * cascade={"persist"}, |
||
87 | * orphanRemoval=true |
||
88 | * ) |
||
89 | */ |
||
90 | protected $performanceEvents; |
||
91 | |||
92 | /** |
||
93 | * @var Collection|VenueSector[] |
||
94 | * |
||
95 | * @ORM\OneToMany( |
||
96 | * targetEntity="AppBundle\Entity\VenueSector", |
||
97 | * mappedBy="venue", |
||
98 | * cascade={"persist", "remove"} |
||
99 | * ) |
||
100 | */ |
||
101 | protected $venueSectors; |
||
102 | |||
103 | /** |
||
104 | * @var Collection|PriceCategory[] |
||
105 | * |
||
106 | * @ORM\OneToMany( |
||
107 | * targetEntity="AppBundle\Entity\PriceCategory", |
||
108 | * mappedBy="venue", |
||
109 | * cascade={"persist", "remove"} |
||
110 | * ) |
||
111 | */ |
||
112 | protected $priceCategories; |
||
113 | |||
114 | /** |
||
115 | * Venue constructor. |
||
116 | */ |
||
117 | public function __construct() |
||
124 | |||
125 | /** |
||
126 | * @return integer |
||
127 | */ |
||
128 | public function getId() |
||
132 | |||
133 | /** |
||
134 | * @return Venue |
||
135 | */ |
||
136 | public function unsetTranslations() |
||
142 | |||
143 | /** |
||
144 | * @return string |
||
145 | */ |
||
146 | public function getTitle() |
||
150 | |||
151 | /** |
||
152 | * @param string $title |
||
153 | * @return Venue |
||
154 | */ |
||
155 | public function setTitle($title) |
||
161 | |||
162 | /** |
||
163 | * @return string |
||
164 | */ |
||
165 | public function getAddress() |
||
169 | |||
170 | /** |
||
171 | * @param string $address |
||
172 | * @return Venue |
||
173 | */ |
||
174 | public function setAddress($address) |
||
180 | |||
181 | /** |
||
182 | * @return string |
||
183 | */ |
||
184 | public function getHallTemplate() |
||
188 | |||
189 | /** |
||
190 | * @param string $hallTemplate |
||
191 | * @return Venue |
||
192 | */ |
||
193 | public function setHallTemplate($hallTemplate) |
||
199 | |||
200 | /** |
||
201 | * @param PerformanceEvent $performanceEvent |
||
202 | * @return Venue |
||
203 | */ |
||
204 | public function addPerformanceEvent(PerformanceEvent $performanceEvent) |
||
210 | |||
211 | /** |
||
212 | * @param PerformanceEvent $performanceEvent |
||
213 | */ |
||
214 | public function removePerformanceEvent(PerformanceEvent $performanceEvent) |
||
218 | |||
219 | /** |
||
220 | * @return Collection |
||
221 | */ |
||
222 | public function getPerformanceEvents() |
||
226 | |||
227 | /** |
||
228 | * @param VenueSector $venueSector |
||
229 | * @return Venue |
||
230 | */ |
||
231 | public function addVenueSector(VenueSector $venueSector) |
||
237 | |||
238 | /** |
||
239 | * @param VenueSector $venueSector |
||
240 | */ |
||
241 | public function removeVenueSector(VenueSector $venueSector) |
||
245 | |||
246 | /** |
||
247 | * @return Collection |
||
248 | */ |
||
249 | public function getVenueSector() |
||
253 | |||
254 | |||
255 | /** |
||
256 | * @param PriceCategory $priceCategory |
||
257 | * @return Venue |
||
258 | */ |
||
259 | public function addPriceCategory(PriceCategory $priceCategory) |
||
265 | |||
266 | /** |
||
267 | * @param PriceCategory $priceCategory |
||
268 | */ |
||
269 | public function removePriceCategory(PriceCategory $priceCategory) |
||
273 | |||
274 | /** |
||
275 | * @return Collection |
||
276 | */ |
||
277 | public function getPriceCategories() |
||
281 | |||
282 | /** |
||
283 | * @return string |
||
284 | */ |
||
285 | public function __toString() |
||
289 | |||
290 | /** |
||
291 | * @param PriceCategory[]|Collection $priceCategory |
||
292 | */ |
||
293 | public function setPriceCategories($priceCategory) |
||
297 | } |
||
298 |