1 | <?php |
||
23 | class PriceCategory 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 | * @Assert\NotBlank() |
||
37 | * @ORM\Column(type="string", length=255) |
||
38 | * @Serializer\Groups({"get_ticket"}) |
||
39 | * @Type("string") |
||
40 | * @Expose() |
||
41 | */ |
||
42 | protected $rows; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | * @Assert\NotBlank() |
||
47 | * @ORM\Column(type="string", length=255) |
||
48 | * @Type("string") |
||
49 | * @Serializer\Groups({"get_ticket"}) |
||
50 | * @Expose() |
||
51 | */ |
||
52 | protected $places; |
||
53 | /** |
||
54 | * @var string |
||
55 | * @Assert\NotBlank() |
||
56 | * @ORM\Column(type="string", length=255, options={"default" : "grey"}) |
||
57 | * @Type("string") |
||
58 | * @Expose() |
||
59 | */ |
||
60 | protected $color; |
||
61 | |||
62 | /** |
||
63 | * @var integer |
||
64 | * @Assert\NotBlank() |
||
65 | * @ORM\Column(type="integer") |
||
66 | * @Type("integer") |
||
67 | * @Expose() |
||
68 | */ |
||
69 | protected $price; |
||
70 | |||
71 | /** |
||
72 | * @var ArrayCollection|Translation[] |
||
73 | * |
||
74 | * @ORM\OneToMany( |
||
75 | * targetEntity="AppBundle\Entity\Translations\PriceCategoryTranslation", |
||
76 | * mappedBy="object", |
||
77 | * cascade={"persist", "remove"} |
||
78 | * ) |
||
79 | */ |
||
80 | protected $translations; |
||
81 | |||
82 | /** |
||
83 | * @var PerformanceEvent |
||
84 | * |
||
85 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\PerformanceEvent", inversedBy="priceCategories") |
||
86 | * @Type("AppBundle\Entity\PerformanceEvent") |
||
87 | * @Expose() |
||
88 | */ |
||
89 | protected $performanceEvent; |
||
90 | |||
91 | /** |
||
92 | * @var VenueSector |
||
93 | * |
||
94 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\VenueSector", inversedBy="priceCategories") |
||
95 | * @Type("AppBundle\Entity\VenueSector") |
||
96 | * @Expose() |
||
97 | */ |
||
98 | protected $venueSector; |
||
99 | |||
100 | /** |
||
101 | * @return integer |
||
102 | */ |
||
103 | public function getId() |
||
107 | |||
108 | /** |
||
109 | * @return PriceCategory |
||
110 | */ |
||
111 | public function unsetTranslations() |
||
117 | |||
118 | /** |
||
119 | * @param string $color |
||
120 | * @return PriceCategory |
||
121 | */ |
||
122 | public function setColor($color = 'grey') |
||
128 | |||
129 | /** |
||
130 | * @return string |
||
131 | */ |
||
132 | public function getColor() |
||
136 | |||
137 | /** |
||
138 | * @return VenueSector |
||
139 | */ |
||
140 | public function getVenueSector() |
||
144 | |||
145 | /** |
||
146 | * @param VenueSector $venueSector |
||
147 | */ |
||
148 | public function setVenueSector(VenueSector $venueSector) |
||
152 | |||
153 | /** |
||
154 | * @return string |
||
155 | */ |
||
156 | public function getRows() |
||
160 | |||
161 | /** |
||
162 | * @param string $rows |
||
163 | */ |
||
164 | public function setRows(string $rows) |
||
168 | |||
169 | /** |
||
170 | * @return string |
||
171 | */ |
||
172 | public function getPlaces() |
||
176 | |||
177 | /** |
||
178 | * @param string $places |
||
179 | */ |
||
180 | public function setPlaces(string $places) |
||
184 | |||
185 | /** |
||
186 | * @return int |
||
187 | */ |
||
188 | public function getPrice() |
||
192 | |||
193 | /** |
||
194 | * @param int $price |
||
195 | */ |
||
196 | public function setPrice(int $price) |
||
200 | |||
201 | /** |
||
202 | * @return PerformanceEvent |
||
203 | */ |
||
204 | public function getPerformanceEvent() |
||
208 | |||
209 | /** |
||
210 | * @param PerformanceEvent $performanceEvent |
||
211 | */ |
||
212 | public function setPerformanceEvent(PerformanceEvent $performanceEvent) |
||
216 | } |
||
217 |