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 | * |
||
46 | * @Serializer\Groups({"get_ticket"}) |
||
47 | * @Type("string") |
||
48 | * @Expose() |
||
49 | */ |
||
50 | protected $title; |
||
51 | |||
52 | /** |
||
53 | * @var string |
||
54 | * @Gedmo\Translatable |
||
55 | * @Assert\NotBlank() |
||
56 | * @Serializer\Groups({"get_ticket"}) |
||
57 | * @ORM\Column(type="string", length=255) |
||
58 | * @Type("string") |
||
59 | * @Expose() |
||
60 | */ |
||
61 | protected $address; |
||
62 | |||
63 | /** |
||
64 | * @var string |
||
65 | * @Assert\NotBlank() |
||
66 | * @ORM\Column(type="text", nullable=true) |
||
67 | * @Type("string") |
||
68 | * @Expose() |
||
69 | */ |
||
70 | protected $hallTemplate; |
||
71 | |||
72 | /** |
||
73 | * @var ArrayCollection|Translation[] |
||
74 | * |
||
75 | * @ORM\OneToMany( |
||
76 | * targetEntity="AppBundle\Entity\Translations\VenueTranslation", |
||
77 | * mappedBy="object", |
||
78 | * cascade={"persist", "remove"} |
||
79 | * ) |
||
80 | */ |
||
81 | protected $translations; |
||
82 | |||
83 | /** |
||
84 | * @var ArrayCollection|PerformanceEvent[] |
||
85 | * |
||
86 | * @ORM\OneToMany( |
||
87 | * targetEntity="AppBundle\Entity\PerformanceEvent", |
||
88 | * mappedBy="venue", |
||
89 | * cascade={"persist"}, |
||
90 | * orphanRemoval=true |
||
91 | * ) |
||
92 | */ |
||
93 | protected $performanceEvents; |
||
94 | |||
95 | /** |
||
96 | * @var Collection|VenueSector[] |
||
97 | * |
||
98 | * @ORM\OneToMany( |
||
99 | * targetEntity="AppBundle\Entity\VenueSector", |
||
100 | * mappedBy="venue", |
||
101 | * cascade={"persist", "remove"} |
||
102 | * ) |
||
103 | */ |
||
104 | protected $venueSectors; |
||
105 | |||
106 | /** |
||
107 | * Venue constructor. |
||
108 | */ |
||
109 | 1 | public function __construct() |
|
115 | |||
116 | /** |
||
117 | * @return integer |
||
118 | */ |
||
119 | 3 | public function getId() |
|
123 | |||
124 | /** |
||
125 | * @return Venue |
||
126 | */ |
||
127 | 6 | public function unsetTranslations() |
|
133 | |||
134 | /** |
||
135 | * @return string |
||
136 | */ |
||
137 | 8 | public function getTitle() |
|
141 | |||
142 | /** |
||
143 | * @param string $title |
||
144 | * @return Venue |
||
145 | */ |
||
146 | 1 | public function setTitle($title) |
|
152 | |||
153 | /** |
||
154 | * @return string |
||
155 | */ |
||
156 | 1 | public function getAddress() |
|
160 | |||
161 | /** |
||
162 | * @param string $address |
||
163 | * @return Venue |
||
164 | */ |
||
165 | 1 | public function setAddress($address) |
|
171 | |||
172 | /** |
||
173 | * @return string |
||
174 | */ |
||
175 | 2 | public function getHallTemplate() |
|
179 | |||
180 | /** |
||
181 | * @param string $hallTemplate |
||
182 | * @return Venue |
||
183 | */ |
||
184 | 1 | public function setHallTemplate($hallTemplate) |
|
190 | |||
191 | /** |
||
192 | * @param PerformanceEvent $performanceEvent |
||
193 | * @return Venue |
||
194 | */ |
||
195 | public function addPerformanceEvent(PerformanceEvent $performanceEvent) |
||
201 | |||
202 | /** |
||
203 | * @param PerformanceEvent $performanceEvent |
||
204 | */ |
||
205 | public function removePerformanceEvent(PerformanceEvent $performanceEvent) |
||
209 | |||
210 | /** |
||
211 | * @return Collection |
||
212 | */ |
||
213 | 2 | public function getPerformanceEvents() |
|
217 | |||
218 | /** |
||
219 | * @param VenueSector $venueSector |
||
220 | * @return Venue |
||
221 | */ |
||
222 | public function addVenueSector(VenueSector $venueSector) |
||
228 | |||
229 | /** |
||
230 | * @param VenueSector $venueSector |
||
231 | */ |
||
232 | public function removeVenueSector(VenueSector $venueSector) |
||
236 | |||
237 | /** |
||
238 | * @return Collection |
||
239 | */ |
||
240 | 1 | public function getVenueSector() |
|
241 | { |
||
242 | 1 | return $this->venueSectors; |
|
|
|||
243 | } |
||
244 | |||
245 | /** |
||
246 | * @return string |
||
247 | */ |
||
248 | 6 | public function __toString() |
|
252 | } |
||
253 |