1 | <?php |
||
25 | class VenueSector extends AbstractPersonalTranslatable implements TranslatableInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var integer |
||
29 | * |
||
30 | * @ORM\Column(name="id", type="integer") |
||
31 | * @ORM\Id |
||
32 | * @ORM\GeneratedValue(strategy="AUTO") |
||
33 | * @Type("integer") |
||
34 | * @Expose() |
||
35 | */ |
||
36 | protected $id; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | * @Gedmo\Translatable |
||
41 | * @Assert\NotBlank() |
||
42 | * @ORM\Column(type="string", length=255) |
||
43 | * @Type("string") |
||
44 | * @Expose() |
||
45 | */ |
||
46 | protected $title; |
||
47 | |||
48 | /** |
||
49 | * @var ArrayCollection|Translation[] |
||
50 | * |
||
51 | * @ORM\OneToMany( |
||
52 | * targetEntity="AppBundle\Entity\Translations\VenueSectorTranslation", |
||
53 | * mappedBy="object", |
||
54 | * cascade={"persist", "remove"} |
||
55 | * ) |
||
56 | */ |
||
57 | protected $translations; |
||
58 | |||
59 | /** |
||
60 | * @var Venue |
||
61 | * |
||
62 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Venue", inversedBy="venueSectors") |
||
63 | */ |
||
64 | protected $venue; |
||
65 | |||
66 | /** |
||
67 | * @var Collection|Seat[] |
||
68 | * |
||
69 | * @ORM\OneToMany( |
||
70 | * targetEntity="AppBundle\Entity\Seat", |
||
71 | * mappedBy="venueSector", |
||
72 | * cascade={"persist", "remove"} |
||
73 | * ) |
||
74 | */ |
||
75 | protected $seats; |
||
76 | |||
77 | /** |
||
78 | * @Gedmo\Slug(fields={"title"}) |
||
79 | * @ORM\Column(name="slug", type="string", length=255) |
||
80 | * @Type("string") |
||
81 | * @Expose |
||
82 | */ |
||
83 | private $slug; |
||
84 | |||
85 | /** |
||
86 | * VenueSector constructor. |
||
87 | */ |
||
88 | public function __construct() |
||
93 | |||
94 | /** |
||
95 | * @return integer |
||
96 | */ |
||
97 | 6 | public function getId() |
|
101 | |||
102 | /** |
||
103 | * @return VenueSector |
||
104 | */ |
||
105 | 1 | public function unsetTranslations() |
|
111 | |||
112 | /** |
||
113 | * @return string |
||
114 | */ |
||
115 | 3 | public function getTitle() |
|
119 | |||
120 | /** |
||
121 | * @param string $title |
||
122 | * @return VenueSector |
||
123 | */ |
||
124 | public function setTitle($title) |
||
130 | |||
131 | /** |
||
132 | * @return Venue |
||
133 | */ |
||
134 | 2 | public function getVenue() |
|
138 | |||
139 | /** |
||
140 | * @param Seat $seat |
||
141 | * @return VenueSector |
||
142 | */ |
||
143 | public function addSeat(Seat $seat) |
||
149 | |||
150 | /** |
||
151 | * @param Seat $seat |
||
152 | */ |
||
153 | public function removeSeat(Seat $seat) |
||
157 | |||
158 | /** |
||
159 | * @return Collection |
||
160 | */ |
||
161 | public function getSeat() |
||
165 | |||
166 | /** |
||
167 | * Get slug |
||
168 | * |
||
169 | * @return string |
||
170 | */ |
||
171 | public function getSlug() |
||
175 | |||
176 | /** |
||
177 | * @return string |
||
178 | */ |
||
179 | 2 | public function __toString() |
|
183 | } |
||
184 |