1 | <?php |
||
23 | class VenueSector extends AbstractPersonalTranslatable implements TranslatableInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var integer |
||
27 | * |
||
28 | * @ORM\Column(name="id", type="integer") |
||
29 | * @ORM\Id |
||
30 | * @ORM\GeneratedValue(strategy="AUTO") |
||
31 | */ |
||
32 | protected $id; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | * @Gedmo\Translatable |
||
37 | * @Assert\NotBlank() |
||
38 | * @ORM\Column(type="string", length=255) |
||
39 | * @Type("string") |
||
40 | * @Expose() |
||
41 | */ |
||
42 | protected $title; |
||
43 | |||
44 | /** |
||
45 | * @var ArrayCollection|Translation[] |
||
46 | * |
||
47 | * @ORM\OneToMany( |
||
48 | * targetEntity="AppBundle\Entity\Translations\VenueSectorTranslation", |
||
49 | * mappedBy="object", |
||
50 | * cascade={"persist", "remove"} |
||
51 | * ) |
||
52 | */ |
||
53 | protected $translations; |
||
54 | |||
55 | /** |
||
56 | * @var Venue |
||
57 | * |
||
58 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Venue", inversedBy="venueSectors") |
||
59 | * @Type("AppBundle\Entity\Venue") |
||
60 | * @Expose() |
||
61 | */ |
||
62 | protected $venue; |
||
63 | |||
64 | /** |
||
65 | * @var Collection|Seat[] |
||
66 | * |
||
67 | * @ORM\OneToMany( |
||
68 | * targetEntity="AppBundle\Entity\Seat", |
||
69 | * mappedBy="venueSector", |
||
70 | * cascade={"persist", "remove"} |
||
71 | * ) |
||
72 | */ |
||
73 | protected $seats; |
||
74 | |||
75 | /** |
||
76 | * @var Collection|PriceCategory[] |
||
77 | * |
||
78 | * @ORM\OneToMany( |
||
79 | * targetEntity="AppBundle\Entity\PriceCategory", |
||
80 | * mappedBy="venueSector", |
||
81 | * cascade={"persist", "remove"} |
||
82 | * ) |
||
83 | */ |
||
84 | protected $priceCategories; |
||
85 | |||
86 | /** |
||
87 | * VenueSector constructor. |
||
88 | */ |
||
89 | public function __construct() |
||
95 | |||
96 | /** |
||
97 | * @return integer |
||
98 | */ |
||
99 | public function getId() |
||
103 | |||
104 | /** |
||
105 | * @return VenueSector |
||
106 | */ |
||
107 | public function unsetTranslations() |
||
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | public function getTitle() |
||
121 | |||
122 | /** |
||
123 | * @param string $title |
||
124 | * @return VenueSector |
||
125 | */ |
||
126 | public function setTitle($title) |
||
132 | |||
133 | /** |
||
134 | * @return Venue |
||
135 | */ |
||
136 | public function getVenue() |
||
140 | |||
141 | /** |
||
142 | * @param Seat $seat |
||
143 | * @return VenueSector |
||
144 | */ |
||
145 | public function addSeat(Seat $seat) |
||
151 | |||
152 | /** |
||
153 | * @param Seat $seat |
||
154 | */ |
||
155 | public function removeSeat(Seat $seat) |
||
159 | |||
160 | /** |
||
161 | * @return Collection |
||
162 | */ |
||
163 | public function getSeat() |
||
167 | |||
168 | /** |
||
169 | * @return string |
||
170 | */ |
||
171 | public function __toString() |
||
175 | |||
176 | /** |
||
177 | * @param PriceCategory $priceCategory |
||
178 | * @return VenueSector |
||
179 | */ |
||
180 | public function addPriceCategory(PriceCategory $priceCategory) |
||
186 | |||
187 | /** |
||
188 | * @param PriceCategory $priceCategory |
||
189 | */ |
||
190 | public function removePriceCategory(PriceCategory $priceCategory) |
||
194 | |||
195 | /** |
||
196 | * @return Collection |
||
197 | */ |
||
198 | public function getPriceCategories() |
||
202 | |||
203 | /** |
||
204 | * @param PriceCategory[]|Collection $priceCategory |
||
205 | */ |
||
206 | public function setPriceCategories($priceCategory) |
||
210 | } |
||
211 |