1 | <?php |
||
22 | class Seat |
||
23 | { |
||
24 | /** |
||
25 | * @var integer |
||
26 | * |
||
27 | * @ORM\Column(name="id", type="integer") |
||
28 | * @ORM\Id |
||
29 | * @ORM\GeneratedValue(strategy="AUTO") |
||
30 | */ |
||
31 | protected $id; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | * @Assert\NotBlank() |
||
36 | * @ORM\Column(type="string", length=255) |
||
37 | * @Type("string") |
||
38 | * @Expose() |
||
39 | */ |
||
40 | protected $uuid; |
||
41 | |||
42 | /** |
||
43 | * @var integer |
||
44 | * @Assert\NotBlank() |
||
45 | * |
||
46 | * @ORM\Column(name="row", type="integer") |
||
47 | * @Type("integer") |
||
48 | * @Expose() |
||
49 | */ |
||
50 | protected $row; |
||
51 | |||
52 | /** |
||
53 | * @var integer |
||
54 | * @Assert\NotBlank() |
||
55 | * |
||
56 | * @ORM\Column(name="place", type="integer") |
||
57 | * @Type("integer") |
||
58 | * @Expose() |
||
59 | */ |
||
60 | protected $place; |
||
61 | |||
62 | /** |
||
63 | * @var VenueSector |
||
64 | * |
||
65 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\VenueSector", inversedBy="seats") |
||
66 | * @Type("AppBundle\Entity\Venue") |
||
67 | * @Expose() |
||
68 | */ |
||
69 | protected $venueSector; |
||
70 | |||
71 | /** |
||
72 | * @var PriceCategory |
||
73 | * |
||
74 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\PriceCategory", inversedBy="seats") |
||
75 | * @Type("AppBundle\Entity\Venue") |
||
76 | * @Expose() |
||
77 | */ |
||
78 | protected $priceCategory; |
||
79 | |||
80 | /** |
||
81 | * @return integer |
||
82 | */ |
||
83 | public function getId() |
||
87 | |||
88 | |||
89 | /** |
||
90 | * @var ArrayCollection|Translation[] |
||
91 | * |
||
92 | * @ORM\OneToMany( |
||
93 | * targetEntity="AppBundle\Entity\Translations\SeatTranslation", |
||
94 | * mappedBy="object", |
||
95 | * cascade={"persist", "remove"} |
||
96 | * ) |
||
97 | */ |
||
98 | protected $translations; |
||
99 | |||
100 | /** |
||
101 | * @return Seat |
||
102 | */ |
||
103 | public function unsetTranslations() |
||
109 | |||
110 | /** |
||
111 | * @return int |
||
112 | */ |
||
113 | public function getRow(): int |
||
117 | |||
118 | /** |
||
119 | * @param int $row |
||
120 | */ |
||
121 | public function setRow(int $row) |
||
125 | |||
126 | /** |
||
127 | * @return int |
||
128 | */ |
||
129 | public function getPlace(): int |
||
133 | |||
134 | /** |
||
135 | * @param int $place |
||
136 | */ |
||
137 | public function setPlace(int $place) |
||
141 | |||
142 | /** |
||
143 | * @return VenueSector |
||
144 | */ |
||
145 | public function getVenueSector(): VenueSector |
||
149 | |||
150 | /** |
||
151 | * @return PriceCategory |
||
152 | */ |
||
153 | public function getPriceCategory(): PriceCategory |
||
157 | } |
||
158 |