1 | <?php |
||
17 | class Company extends \WebCMS\Entity\Entity |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @ORM\Column(type="string", length=255) |
||
22 | */ |
||
23 | private $name; |
||
24 | |||
25 | /** |
||
26 | * @ORM\Column(type="string", length=255) |
||
27 | */ |
||
28 | private $street; |
||
29 | |||
30 | /** |
||
31 | * @ORM\Column(type="string", length=255) |
||
32 | */ |
||
33 | private $zipCity; |
||
34 | |||
35 | /** |
||
36 | * @ORM\Column(type="string", length=255) |
||
37 | */ |
||
38 | private $ico; |
||
39 | |||
40 | /** |
||
41 | * @ORM\Column(type="string", length=255) |
||
42 | */ |
||
43 | private $dic; |
||
44 | |||
45 | /** |
||
46 | * @ORM\Column(type="string", length=255) |
||
47 | */ |
||
48 | private $email; |
||
49 | |||
50 | /** |
||
51 | * @ORM\Column(type="string", length=255) |
||
52 | */ |
||
53 | private $phone; |
||
54 | |||
55 | /** |
||
56 | * @ORM\Column(type="boolean") |
||
57 | */ |
||
58 | private $active; |
||
59 | |||
60 | /** |
||
61 | * @var datetime $created |
||
62 | * |
||
63 | * @gedmo\Timestampable(on="create") |
||
64 | * @ORM\Column(type="datetime") |
||
65 | */ |
||
66 | private $created; |
||
67 | |||
68 | /** |
||
69 | * @ORM\OneToMany(targetEntity="Businessman", mappedBy="company") |
||
70 | */ |
||
71 | private $businessmen; |
||
72 | |||
73 | |||
74 | public function getName() |
||
78 | |||
79 | public function setName($name) |
||
84 | |||
85 | public function getLastname() |
||
89 | |||
90 | public function setLastname($lastname) |
||
95 | |||
96 | public function getStreet() |
||
100 | |||
101 | public function setStreet($street) |
||
106 | |||
107 | public function getZipCity() |
||
111 | |||
112 | public function setZipCity($zipCity) |
||
117 | |||
118 | public function getIco() |
||
122 | |||
123 | public function setIco($ico) |
||
128 | |||
129 | public function getDic() |
||
133 | |||
134 | public function setDic($dic) |
||
139 | |||
140 | public function getEmail() |
||
144 | |||
145 | public function setEmail($email) |
||
150 | |||
151 | public function getPhone() |
||
155 | |||
156 | public function setPhone($phone) |
||
161 | |||
162 | public function getActive() |
||
166 | |||
167 | public function setActive($active) |
||
172 | |||
173 | public function getCreated() |
||
177 | |||
178 | public function setCreated($created) |
||
183 | |||
184 | /** |
||
185 | * Gets the value of businessmen. |
||
186 | * |
||
187 | * @return mixed |
||
188 | */ |
||
189 | public function getBusinessmen() |
||
193 | |||
194 | /** |
||
195 | * Sets the value of businessmen. |
||
196 | * |
||
197 | * @param mixed $businessmen the businessmen |
||
198 | * |
||
199 | * @return self |
||
200 | */ |
||
201 | public function setBusinessmen($businessmen) |
||
206 | |||
207 | } |
||
208 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.