1 | <?php |
||
22 | class Seat extends AbstractPersonalTranslatable implements TranslatableInterface |
||
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 integer |
||
35 | * @Assert\NotBlank() |
||
36 | * |
||
37 | * @ORM\Column(name="row", type="integer") |
||
38 | * @Type("integer") |
||
39 | * @Expose() |
||
40 | */ |
||
41 | protected $row; |
||
42 | |||
43 | /** |
||
44 | * @var integer |
||
45 | * @Assert\NotBlank() |
||
46 | * |
||
47 | * @ORM\Column(name="place", type="integer") |
||
48 | * @Type("integer") |
||
49 | * @Expose() |
||
50 | */ |
||
51 | protected $place; |
||
52 | |||
53 | /** |
||
54 | * @var VenueSector |
||
55 | * |
||
56 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\VenueSector", inversedBy="seats") |
||
57 | * @Type("AppBundle\Entity\VenueSector") |
||
58 | * @Expose() |
||
59 | */ |
||
60 | protected $venueSector; |
||
61 | |||
62 | /** |
||
63 | * @var PriceCategory |
||
64 | * |
||
65 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\PriceCategory", inversedBy="seats") |
||
66 | * @Type("AppBundle\Entity\PriceCategory") |
||
67 | * @Expose() |
||
68 | */ |
||
69 | protected $priceCategory; |
||
70 | |||
71 | /** |
||
72 | * @return integer |
||
73 | */ |
||
74 | public function getId() |
||
78 | |||
79 | |||
80 | /** |
||
81 | * @var ArrayCollection|Translation[] |
||
82 | * |
||
83 | * @ORM\OneToMany( |
||
84 | * targetEntity="AppBundle\Entity\Translations\SeatTranslation", |
||
85 | * mappedBy="object", |
||
86 | * cascade={"persist", "remove"} |
||
87 | * ) |
||
88 | */ |
||
89 | protected $translations; |
||
90 | |||
91 | /** |
||
92 | * @return Seat |
||
93 | */ |
||
94 | public function unsetTranslations() |
||
100 | |||
101 | /** |
||
102 | * @return int |
||
103 | */ |
||
104 | public function getRow(): int |
||
108 | |||
109 | /** |
||
110 | * @param int $row |
||
111 | */ |
||
112 | public function setRow(int $row) |
||
116 | |||
117 | /** |
||
118 | * @return int |
||
119 | */ |
||
120 | public function getPlace(): int |
||
124 | |||
125 | /** |
||
126 | * @param int $place |
||
127 | */ |
||
128 | public function setPlace(int $place) |
||
132 | |||
133 | /** |
||
134 | * @return VenueSector |
||
135 | */ |
||
136 | public function getVenueSector(): VenueSector |
||
140 | |||
141 | /** |
||
142 | * @return PriceCategory |
||
143 | */ |
||
144 | public function getPriceCategory(): PriceCategory |
||
148 | } |
||
149 |