Completed
Push — develop ( 6adcbb...6abf52 )
by
unknown
18:22 queued 10:16
created

OrganizationContact::getPhone()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @copyright (c) 2013-2015 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\String */
29
    protected $houseNumber;
30
    
31
    /**
32
     * Postalcode of an organization address
33
     *
34
     * @var string
35
     * @ODM\String */
36
    protected $postalcode;
37
38
    /**
39
     * Cityname of an organization address
40
     *
41
     * @var string
42
     * @ODM\String */
43
    protected $city;
44
    
45
    /**
46
     * Streetname of an organization address
47
     *
48
     * @var string
49
     * @ODM\String */
50
    protected $street;
51
52
    /**
53
     * Phone number of an organization address
54
     *
55
     * @var string
56
     * @ODM\String */
57
    protected $phone;
58
59
    /**
60
     * Fax number of an organization address
61
     *
62
     * @var string
63
     * @ODM\String */
64
    protected $fax;
65
66
    /**
67
     * Sets the Buildingnumber of an organization address
68
     *
69
     * @param string $houseNumber
70
     * @return OrganizationContact
71
     */
72
    public function setHouseNumber($houseNumber = "")
73
    {
74
        $this->houseNumber=$houseNumber;
75
        return $this;
76
    }
77
    
78
    /**
79
     * Gets the Buildingnumber of an organization address
80
     *
81
     * @return string
82
     */
83
    public function getHouseNumber()
84
    {
85
        return $this->houseNumber;
86
    }
87
88
    /**
89
     * Sets a postal code of an organization address
90
     *
91
     * @param $postalcode
92
     * @return OrganizationContact
93
     */
94
    public function setPostalcode($postalcode)
95
    {
96
        $this->postalcode = (String) $postalcode;
97
        return $this;
98
    }
99
100
    /**
101
     * Gets a postal code of an organization address
102
     *
103
     * @return string
104
     */
105
    public function getPostalcode()
106
    {
107
        return $this->postalcode;
108
    }
109
    
110
    /**
111
     * Sets a city (name) of an organization address
112
     *
113
     * @param string $city
114
     * @return OrganizationContact
115
     */
116
    public function setCity($city = "")
117
    {
118
        $this->city = (String) $city;
119
        return $this;
120
    }
121
122
    /**
123
     * Gets a city (name) of an organization address
124
     *
125
     * @return string
126
     */
127
    public function getCity()
128
    {
129
        return $this->city;
130
    }
131
    
132
    /**
133
     * Sets a street name of an organization address
134
     *
135
     * @param string $street
136
     * @return OrganizationContact
137
     */
138
    public function setStreet($street = "")
139
    {
140
        $this->street=$street;
141
        return $this;
142
    }
143
144
    /**
145
     * Gets a street name of an organization address
146
     *
147
     * @return string
148
     */
149
    public function getStreet()
150
    {
151
        return $this->street;
152
    }
153
154
    /**
155
     * Sets a phone number of an organization address
156
     *
157
     * @param string $phone
158
     *
159
     * @return OrganizationContact
0 ignored issues
show
Documentation introduced by
Should the return type not be OrganizationContact|null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
160
     */
161
    public function setPhone($phone = "")
162
    {
163
        $this->phone=$phone;
164
    }
165
166
    /**
167
     * Gets a phone number name of an organization address
168
     *
169
     * @return string
170
     */
171
    public function getPhone()
172
    {
173
        return $this->phone;
174
    }
175
176
    /**
177
     * Sets a fax number of an organization address
178
     *
179
     * @param string $fax
180
     *
181
     * @return OrganizationContact
0 ignored issues
show
Documentation introduced by
Should the return type not be OrganizationContact|null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
182
     */
183
    public function setFax($fax = "")
184
    {
185
        $this->fax=$fax;
186
    }
187
188
    /**
189
     * Gets a fax number of an organization address
190
     *
191
     * @return string
192
     */
193
    public function getFax()
194
    {
195
        return $this->fax;
196
    }
197
198
199
}
200