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