1 | <?php |
||
19 | class Seat |
||
20 | { |
||
21 | /** |
||
22 | * @var integer |
||
23 | * |
||
24 | * @ORM\Column(name="id", type="integer") |
||
25 | * @ORM\Id |
||
26 | * @ORM\GeneratedValue(strategy="AUTO") |
||
27 | */ |
||
28 | protected $id; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | * @Assert\NotBlank() |
||
33 | * @ORM\Column(type="string", length=255) |
||
34 | * @Type("string") |
||
35 | * @Expose() |
||
36 | */ |
||
37 | protected $uuid; |
||
38 | |||
39 | /** |
||
40 | * @var integer |
||
41 | * @Assert\NotBlank() |
||
42 | * |
||
43 | * @ORM\Column(name="row", type="integer") |
||
44 | * @Type("integer") |
||
45 | * @Expose() |
||
46 | */ |
||
47 | protected $row; |
||
48 | |||
49 | /** |
||
50 | * @var integer |
||
51 | * @Assert\NotBlank() |
||
52 | * |
||
53 | * @ORM\Column(name="place", type="integer") |
||
54 | * @Type("integer") |
||
55 | * @Expose() |
||
56 | */ |
||
57 | protected $place; |
||
58 | |||
59 | /** |
||
60 | * @var VenueSector |
||
61 | * |
||
62 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\VenueSector", inversedBy="seats") |
||
63 | * @Type("AppBundle\Entity\Venue") |
||
64 | * @Expose() |
||
65 | */ |
||
66 | protected $venueSector; |
||
67 | |||
68 | /** |
||
69 | * @var PriceCategory |
||
70 | * |
||
71 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\PriceCategory", inversedBy="seats") |
||
72 | * @Type("AppBundle\Entity\Venue") |
||
73 | * @Expose() |
||
74 | */ |
||
75 | protected $priceCategory; |
||
76 | |||
77 | /** |
||
78 | * @return integer |
||
79 | */ |
||
80 | public function getId() |
||
84 | |||
85 | /** |
||
86 | * @return Seat |
||
87 | */ |
||
88 | public function unsetTranslations() |
||
94 | |||
95 | /** |
||
96 | * @return int |
||
97 | */ |
||
98 | public function getRow(): int |
||
102 | |||
103 | /** |
||
104 | * @param int $row |
||
105 | */ |
||
106 | public function setRow(int $row) |
||
110 | |||
111 | /** |
||
112 | * @return int |
||
113 | */ |
||
114 | public function getPlace(): int |
||
118 | |||
119 | /** |
||
120 | * @param int $place |
||
121 | */ |
||
122 | public function setPlace(int $place) |
||
126 | |||
127 | /** |
||
128 | * @return VenueSector |
||
129 | */ |
||
130 | public function getVenueSector(): VenueSector |
||
134 | |||
135 | /** |
||
136 | * @return PriceCategory |
||
137 | */ |
||
138 | public function getPriceCategory(): PriceCategory |
||
142 | } |
||
143 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: