1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* This file is part of the Investform module for webcms2. |
5
|
|
|
* Copyright (c) @see LICENSE |
6
|
|
|
*/ |
7
|
|
|
|
8
|
|
|
namespace WebCMS\InvestformModule\Entity; |
9
|
|
|
|
10
|
|
|
use Doctrine\ORM\Mapping as ORM; |
11
|
|
|
use Gedmo\Mapping\Annotation as gedmo; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @ORM\Entity() |
15
|
|
|
* @ORM\Table(name="investform_Businessman") |
16
|
|
|
*/ |
17
|
|
|
class Businessman extends \WebCMS\Entity\Entity |
18
|
|
|
{ |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* @ORM\Column(type="string", length=255, nullable=true) |
22
|
|
|
*/ |
23
|
|
|
private $name; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* @ORM\Column(type="string", length=255, nullable=true) |
27
|
|
|
*/ |
28
|
|
|
private $lastname; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @ORM\Column(type="string", length=255, nullable=true) |
32
|
|
|
*/ |
33
|
|
|
private $businessname; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @ORM\Column(type="string", length=255) |
37
|
|
|
*/ |
38
|
|
|
private $street; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @ORM\Column(type="string", length=255) |
42
|
|
|
*/ |
43
|
|
|
private $zipCity; |
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="string", length=255) |
57
|
|
|
*/ |
58
|
|
|
private $businessId; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @ORM\Column(type="string", length=255) |
62
|
|
|
*/ |
63
|
|
|
private $businessUrl; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @ORM\Column(type="boolean") |
67
|
|
|
*/ |
68
|
|
|
private $active; |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @var datetime $created |
72
|
|
|
* |
73
|
|
|
* @gedmo\Timestampable(on="create") |
74
|
|
|
* @ORM\Column(type="datetime") |
75
|
|
|
*/ |
76
|
|
|
private $created; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @ORM\ManyToOne(targetEntity="Company") |
80
|
|
|
*/ |
81
|
|
|
private $company; |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @ORM\ManyToOne(targetEntity="\WebCMS\Entity\User") |
85
|
|
|
*/ |
86
|
|
|
private $user; |
87
|
|
|
|
88
|
|
|
|
89
|
|
|
public function getName() |
90
|
|
|
{ |
91
|
|
|
return $this->name; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
public function setName($name) |
95
|
|
|
{ |
96
|
|
|
$this->name = $name; |
97
|
|
|
return $this; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
public function getLastname() |
101
|
|
|
{ |
102
|
|
|
return $this->lastname; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
public function setLastname($lastname) |
106
|
|
|
{ |
107
|
|
|
$this->lastname = $lastname; |
108
|
|
|
return $this; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
public function getStreet() |
112
|
|
|
{ |
113
|
|
|
return $this->street; |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
public function setStreet($street) |
117
|
|
|
{ |
118
|
|
|
$this->street = $street; |
119
|
|
|
return $this; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
public function getZipCity() |
123
|
|
|
{ |
124
|
|
|
return $this->zipCity; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
public function setZipCity($zipCity) |
128
|
|
|
{ |
129
|
|
|
$this->zipCity = $zipCity; |
130
|
|
|
return $this; |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
public function getEmail() |
134
|
|
|
{ |
135
|
|
|
return $this->email; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
public function setEmail($email) |
139
|
|
|
{ |
140
|
|
|
$this->email = $email; |
141
|
|
|
return $this; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
public function getPhone() |
145
|
|
|
{ |
146
|
|
|
return $this->phone; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
public function setPhone($phone) |
150
|
|
|
{ |
151
|
|
|
$this->phone = $phone; |
152
|
|
|
return $this; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
public function getBusinessId() |
156
|
|
|
{ |
157
|
|
|
return $this->businessId; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
public function setBusinessId($businessId) |
161
|
|
|
{ |
162
|
|
|
$this->businessId = $businessId; |
163
|
|
|
return $this; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
public function getBusinessUrl() |
167
|
|
|
{ |
168
|
|
|
return $this->businessUrl; |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
public function setBusinessUrl($businessUrl) |
172
|
|
|
{ |
173
|
|
|
$this->businessUrl = $businessUrl; |
174
|
|
|
return $this; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
public function getActive() |
178
|
|
|
{ |
179
|
|
|
return $this->active; |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
public function setActive($active) |
183
|
|
|
{ |
184
|
|
|
$this->active = $active; |
185
|
|
|
return $this; |
186
|
|
|
} |
187
|
|
|
|
188
|
|
|
public function getCreated() |
189
|
|
|
{ |
190
|
|
|
return $this->created; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
public function setCreated($created) |
194
|
|
|
{ |
195
|
|
|
$this->created = $created; |
196
|
|
|
return $this; |
197
|
|
|
} |
198
|
|
|
|
199
|
|
|
public function getCompany() |
200
|
|
|
{ |
201
|
|
|
return $this->company; |
202
|
|
|
} |
203
|
|
|
|
204
|
|
|
public function setCompany($company) |
205
|
|
|
{ |
206
|
|
|
$this->company = $company; |
207
|
|
|
return $this; |
208
|
|
|
} |
209
|
|
|
|
210
|
|
|
public function getUser() |
211
|
|
|
{ |
212
|
|
|
return $this->user; |
213
|
|
|
} |
214
|
|
|
|
215
|
|
|
public function setUser($user) |
216
|
|
|
{ |
217
|
|
|
$this->user = $user; |
218
|
|
|
return $this; |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
public function getBusinessname() |
222
|
|
|
{ |
223
|
|
|
return $this->businessname; |
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
public function setBusinessname($businessname) |
227
|
|
|
{ |
228
|
|
|
$this->businessname = $businessname; |
229
|
|
|
return $this; |
230
|
|
|
} |
231
|
|
|
|
232
|
|
|
} |
233
|
|
|
|