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 | * @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 string |
||
46 | * @Assert\NotBlank() |
||
47 | * @ORM\Column(type="string", length=255) |
||
48 | * @Type("string") |
||
49 | * @Expose() |
||
50 | */ |
||
51 | protected $color; |
||
52 | |||
53 | /** |
||
54 | * @var ArrayCollection|Translation[] |
||
55 | * |
||
56 | * @ORM\OneToMany( |
||
57 | * targetEntity="AppBundle\Entity\Translations\PriceCategoryTranslation", |
||
58 | * mappedBy="object", |
||
59 | * cascade={"persist", "remove"} |
||
60 | * ) |
||
61 | */ |
||
62 | protected $translations; |
||
63 | |||
64 | /** |
||
65 | * @var Venue |
||
66 | * |
||
67 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Venue", inversedBy="priceCategories") |
||
68 | * @Type("AppBundle\Entity\Venue") |
||
69 | * @Expose() |
||
70 | */ |
||
71 | protected $venue; |
||
72 | |||
73 | /** |
||
74 | * @var Collection|Seat[] |
||
75 | * |
||
76 | * @ORM\OneToMany( |
||
77 | * targetEntity="AppBundle\Entity\Seat", |
||
78 | * mappedBy="priceCategory", |
||
79 | * cascade={"persist"} |
||
80 | * ) |
||
81 | */ |
||
82 | protected $seats; |
||
83 | |||
84 | |||
85 | /** |
||
86 | * PriceCategory constructor. |
||
87 | */ |
||
88 | public function __construct() |
||
93 | |||
94 | /** |
||
95 | * @return integer |
||
96 | */ |
||
97 | public function getId() |
||
101 | |||
102 | /** |
||
103 | * @return PriceCategory |
||
104 | */ |
||
105 | public function unsetTranslations() |
||
111 | |||
112 | /** |
||
113 | * @return string |
||
114 | */ |
||
115 | public function getTitle() |
||
119 | |||
120 | /** |
||
121 | * @param string $color |
||
122 | * @return PriceCategory |
||
123 | */ |
||
124 | public function setColor($color) |
||
130 | |||
131 | /** |
||
132 | * @return string |
||
133 | */ |
||
134 | public function getColor() |
||
138 | |||
139 | /** |
||
140 | * @param string $title |
||
141 | * @return PriceCategory |
||
142 | */ |
||
143 | public function setTitle($title) |
||
149 | |||
150 | /** |
||
151 | * @return Venue |
||
152 | */ |
||
153 | public function getVenue() |
||
157 | |||
158 | /** |
||
159 | * @param Seat $seat |
||
160 | * @return PriceCategory |
||
161 | */ |
||
162 | public function addSeat(Seat $seat) |
||
168 | |||
169 | /** |
||
170 | * @param Seat $seat |
||
171 | */ |
||
172 | public function removeSeat(Seat $seat) |
||
176 | |||
177 | /** |
||
178 | * @return Collection |
||
179 | */ |
||
180 | public function getSeat() |
||
184 | |||
185 | /** |
||
186 | * @return string |
||
187 | */ |
||
188 | public function __toString() |
||
192 | |||
193 | /** |
||
194 | * @param Venue $venue |
||
195 | */ |
||
196 | public function setVenue(Venue $venue) |
||
200 | } |
||
201 |