Completed
Push — develop ( 83818f...f24506 )
by
unknown
07:25
created

OrganizationContact::setWebsite()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
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
     * Fax number of an organization address
61
     *
62
     * @var string
63
     * @ODM\Field(type="string") */
64
    protected $fax;
65
66
    /**
67
     * The website of the organization.
68
     *
69
     * @ODM\Field
70
     * @var string
71
     */
72
    private $website;
73
74
    /**
75
     * Sets the Buildingnumber of an organization address
76
     *
77
     * @param string $houseNumber
78
     * @return OrganizationContact
79
     */
80
    public function setHouseNumber($houseNumber = "")
81
    {
82
        $this->houseNumber=$houseNumber;
83
        return $this;
84
    }
85
    
86
    /**
87
     * Gets the Buildingnumber of an organization address
88
     *
89
     * @return string
90
     */
91
    public function getHouseNumber()
92
    {
93
        return $this->houseNumber;
94
    }
95
96
    /**
97
     * Sets a postal code of an organization address
98
     *
99
     * @param $postalcode
100
     * @return OrganizationContact
101
     */
102
    public function setPostalcode($postalcode)
103
    {
104
        $this->postalcode = (String) $postalcode;
105
        return $this;
106
    }
107
108
    /**
109
     * Gets a postal code of an organization address
110
     *
111
     * @return string
112
     */
113
    public function getPostalcode()
114
    {
115
        return $this->postalcode;
116
    }
117
    
118
    /**
119
     * Sets a city (name) of an organization address
120
     *
121
     * @param string $city
122
     * @return OrganizationContact
123
     */
124
    public function setCity($city = "")
125
    {
126
        $this->city = (String) $city;
127
        return $this;
128
    }
129
130
    /**
131
     * Gets a city (name) of an organization address
132
     *
133
     * @return string
134
     */
135
    public function getCity()
136
    {
137
        return $this->city;
138
    }
139
    
140
    /**
141
     * Sets a street name of an organization address
142
     *
143
     * @param string $street
144
     * @return OrganizationContact
145
     */
146
    public function setStreet($street = "")
147
    {
148
        $this->street=$street;
149
        return $this;
150
    }
151
152
    /**
153
     * Gets a street name of an organization address
154
     *
155
     * @return string
156
     */
157
    public function getStreet()
158
    {
159
        return $this->street;
160
    }
161
162
    /**
163
     * Sets a phone number of an organization address
164
     *
165
     * @param string $phone
166
     *
167
     * @return OrganizationContact
168
     */
169
    public function setPhone($phone = "")
170
    {
171
        $this->phone=$phone;
172
        return $this;
173
    }
174
175
    /**
176
     * Gets a phone number name of an organization address
177
     *
178
     * @return string
179
     */
180
    public function getPhone()
181
    {
182
        return $this->phone;
183
    }
184
185
    /**
186
     * Sets a fax number of an organization address
187
     *
188
     * @param string $fax
189
     *
190
     * @return OrganizationContact
191
     */
192
    public function setFax($fax = "")
193
    {
194
        $this->fax=$fax;
195
        return $this;
196
    }
197
198
    /**
199
     * Gets a fax number of an organization address
200
     *
201
     * @return string
202
     */
203
    public function getFax()
204
    {
205
        return $this->fax;
206
    }
207
208
    public function setWebsite($website)
209
    {
210
        $this->website = $website;
211
212
        return $this;
213
    }
214
215
    public function getWebsite()
216
    {
217
        return $this->website;
218
    }
219
220
221
222
223
}
224