1 | <?php |
||
23 | class Seat 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 integer |
||
36 | * @Assert\NotBlank() |
||
37 | * |
||
38 | * @ORM\Column(name="row", type="integer") |
||
39 | * |
||
40 | * @Serializer\Groups({"get_ticket"}) |
||
41 | * @Type("integer") |
||
42 | * @Expose() |
||
43 | */ |
||
44 | protected $row; |
||
45 | |||
46 | /** |
||
47 | * @var integer |
||
48 | * @Assert\NotBlank() |
||
49 | * |
||
50 | * @Serializer\Groups({"get_ticket"}) |
||
51 | * @ORM\Column(name="place", type="integer") |
||
52 | * @Type("integer") |
||
53 | * @Expose() |
||
54 | */ |
||
55 | protected $place; |
||
56 | |||
57 | /** |
||
58 | * @var VenueSector |
||
59 | * |
||
60 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\VenueSector", inversedBy="seats") |
||
61 | * @Type("AppBundle\Entity\VenueSector") |
||
62 | * @Expose() |
||
63 | */ |
||
64 | protected $venueSector; |
||
65 | |||
66 | /** |
||
67 | * @return integer |
||
68 | */ |
||
69 | public function getId() |
||
73 | |||
74 | |||
75 | /** |
||
76 | * @var ArrayCollection|Translation[] |
||
77 | * |
||
78 | * @ORM\OneToMany( |
||
79 | * targetEntity="AppBundle\Entity\Translations\SeatTranslation", |
||
80 | * mappedBy="object", |
||
81 | * cascade={"persist", "remove"} |
||
82 | * ) |
||
83 | */ |
||
84 | protected $translations; |
||
85 | |||
86 | /** |
||
87 | * @return Seat |
||
88 | */ |
||
89 | public function unsetTranslations() |
||
95 | |||
96 | /** |
||
97 | * @return int |
||
98 | */ |
||
99 | public function getRow(): int |
||
103 | |||
104 | /** |
||
105 | * @param int $row |
||
106 | */ |
||
107 | public function setRow(int $row) |
||
111 | |||
112 | /** |
||
113 | * @return int |
||
114 | */ |
||
115 | public function getPlace(): int |
||
119 | |||
120 | /** |
||
121 | * @param int $place |
||
122 | */ |
||
123 | public function setPlace(int $place) |
||
127 | |||
128 | /** |
||
129 | * @return VenueSector |
||
130 | */ |
||
131 | public function getVenueSector(): VenueSector |
||
135 | |||
136 | /** |
||
137 | * Get VenueSector Id. |
||
138 | * |
||
139 | * @Serializer\VirtualProperty() |
||
140 | * @Serializer\SerializedName("venue_sector_id") |
||
141 | * @Type("integer") |
||
142 | * @Serializer\Groups({"get_ticket"}) |
||
143 | * |
||
144 | * @return integer |
||
145 | */ |
||
146 | public function getVenueSectorId(): int |
||
150 | |||
151 | /** |
||
152 | * @return string |
||
153 | */ |
||
154 | public function __toString() |
||
158 | } |
||
159 |