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 | * VenueSector constructor. |
||
77 | */ |
||
78 | public function __construct() |
||
83 | |||
84 | /** |
||
85 | * @return integer |
||
86 | */ |
||
87 | public function getId() |
||
91 | |||
92 | /** |
||
93 | * @return VenueSector |
||
94 | */ |
||
95 | public function unsetTranslations() |
||
101 | |||
102 | /** |
||
103 | * @return string |
||
104 | */ |
||
105 | public function getTitle() |
||
109 | |||
110 | /** |
||
111 | * @param string $title |
||
112 | * @return VenueSector |
||
113 | */ |
||
114 | public function setTitle($title) |
||
120 | |||
121 | /** |
||
122 | * @return Venue |
||
123 | */ |
||
124 | public function getVenue() |
||
128 | |||
129 | /** |
||
130 | * @param Seat $seat |
||
131 | * @return VenueSector |
||
132 | */ |
||
133 | public function addSeat(Seat $seat) |
||
139 | |||
140 | /** |
||
141 | * @param Seat $seat |
||
142 | */ |
||
143 | public function removeSeat(Seat $seat) |
||
147 | |||
148 | /** |
||
149 | * @return Collection |
||
150 | */ |
||
151 | public function getSeat() |
||
155 | |||
156 | /** |
||
157 | * @return string |
||
158 | */ |
||
159 | public function __toString() |
||
163 | } |
||
164 |