Completed
Pull Request — develop (#429)
by Carsten
07:02
created

OrganizationContact::getCountry()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
7
 * @license   MIT
8
 */
9
10
namespace Organizations\Entity;
11
12
use Core\Entity\AbstractIdentifiableHydratorAwareEntity;
13
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
14
15
/**
16
 * Defines the contact address of an organization
17
 *
18
 * @ODM\EmbeddedDocument
19
 */
20
class OrganizationContact extends AbstractIdentifiableHydratorAwareEntity implements OrganizationContactInterface
21
{
22
   
23
    
24
    /**
25
     * BuildingNumber of an organization address
26
     *
27
     * @var string
28
     * @ODM\Field(type="string") */
29
    protected $houseNumber;
30
    
31
    /**
32
     * Postalcode of an organization address
33
     *
34
     * @var string
35
     * @ODM\Field(type="string") */
36
    protected $postalcode;
37
38
    /**
39
     * Cityname of an organization address
40
     *
41
     * @var string
42
     * @ODM\Field(type="string") */
43
    protected $city;
44
    
45
    /**
46
     * Streetname of an organization address
47
     *
48
     * @var string
49
     * @ODM\Field(type="string") */
50
    protected $street;
51
52
    /**
53
     * Phone number of an organization address
54
     *
55
     * @var string
56
     * @ODM\Field(type="string") */
57
    protected $phone;
58
59
    /**
60
     * country of an organization address
61
     *
62
     * @var string
63
     * @ODM\Field(type="string") */
64
    protected $country;
65
66
    /**
67
     * Fax number of an organization address
68
     *
69
     * @var string
70
     * @ODM\Field(type="string") */
71
    protected $fax;
72
73
    /**
74
     * The website of the organization.
75
     *
76
     * @ODM\Field
77
     * @var string
78
     */
79
    private $website;
80
81
    /**
82
     * Sets the Buildingnumber of an organization address
83
     *
84
     * @param string $houseNumber
85
     * @return OrganizationContact
86
     */
87
    public function setHouseNumber($houseNumber = "")
88
    {
89
        $this->houseNumber=$houseNumber;
90
        return $this;
91
    }
92
    
93
    /**
94
     * Gets the Buildingnumber of an organization address
95
     *
96
     * @return string
97
     */
98
    public function getHouseNumber()
99
    {
100
        return $this->houseNumber;
101
    }
102
103
    /**
104
     * Sets a postal code of an organization address
105
     *
106
     * @param $postalcode
107
     * @return OrganizationContact
108
     */
109
    public function setPostalcode($postalcode)
110
    {
111
        $this->postalcode = (String) $postalcode;
112
        return $this;
113
    }
114
115
    /**
116
     * Gets a postal code of an organization address
117
     *
118
     * @return string
119
     */
120
    public function getPostalcode()
121
    {
122
        return $this->postalcode;
123
    }
124
    
125
    /**
126
     * Sets a city (name) of an organization address
127
     *
128
     * @param string $city
129
     * @return OrganizationContact
130
     */
131
    public function setCity($city = "")
132
    {
133
        $this->city = (String) $city;
134
        return $this;
135
    }
136
137
    /**
138
     * Gets a city (name) of an organization address
139
     *
140
     * @return string
141
     */
142
    public function getCity()
143
    {
144
        return $this->city;
145
    }
146
    
147
    /**
148
     * Sets a street name of an organization address
149
     *
150
     * @param string $street
151
     * @return OrganizationContact
152
     */
153
    public function setStreet($street = "")
154
    {
155
        $this->street=$street;
156
        return $this;
157
    }
158
159
    /**
160
     * Gets a street name of an organization address
161
     *
162
     * @return string
163
     */
164
    public function getStreet()
165
    {
166
        return $this->street;
167
    }
168
169
    /**
170
     * Sets teh country of an organization address
171
     *
172
     * @param string $country
173
     * @return OrganizationContact
174
     */
175
    public function setCountry($country = "")
176
    {
177
        $this->country=$country;
178
        return $this;
179
    }
180
181
    /**
182
     * Gets the country of an organization address
183
     *
184
     * @return string
185
     */
186
    public function getCountry()
187
    {
188
        return $this->country;
189
    }
190
191
192
193
    /**
194
     * Sets a phone number of an organization address
195
     *
196
     * @param string $phone
197
     *
198
     * @return OrganizationContact
199
     */
200
    public function setPhone($phone = "")
201
    {
202
        $this->phone=$phone;
203
        return $this;
204
    }
205
206
    /**
207
     * Gets a phone number name of an organization address
208
     *
209
     * @return string
210
     */
211
    public function getPhone()
212
    {
213
        return $this->phone;
214
    }
215
216
    /**
217
     * Sets a fax number of an organization address
218
     *
219
     * @param string $fax
220
     *
221
     * @return OrganizationContact
222
     */
223
    public function setFax($fax = "")
224
    {
225
        $this->fax=$fax;
226
        return $this;
227
    }
228
229
    /**
230
     * Gets a fax number of an organization address
231
     *
232
     * @return string
233
     */
234
    public function getFax()
235
    {
236
        return $this->fax;
237
    }
238
239
    public function setWebsite($website)
240
    {
241
        $this->website = $website;
242
243
        return $this;
244
    }
245
246
    public function getWebsite()
247
    {
248
        return $this->website;
249
    }
250
251
252
253
254
}
255