Passed
Pull Request — master (#21)
by Cesar
01:35
created

Address::setAddress()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Pagantis\OrdersApiClient\Model\Order\User;
4
5
use Pagantis\OrdersApiClient\Model\AbstractModel;
6
7
/**
8
 * Class Address
9
 * @package Pagantis\OrdersApiClient\Model\Order\User
10
 */
11
class Address extends AbstractModel
12
{
13
    /**
14
     * @var string $address the street name with the address details.
15
     */
16
    protected $address;
17
18
    /**
19
     * @var string $city the city name
20
     */
21
    protected $city;
22
23
    /**
24
     * @var string $countryCode the country code ES, FR, PT, IT
25
     */
26
    protected $countryCode;
27
28
    /**
29
     * @var string $fullName the full name of the user, including 2 sur names
30
     */
31
    protected $fullName;
32
33
    /**
34
     * @var string $zipCode $the zipCode of the address.
35
     */
36
    protected $zipCode;
37
38
    /**
39
     * @var string $fixPhone Fix Phone of the user
40
     */
41
    protected $fixPhone;
42
43
    /**
44
     * @var string $mobilePhone Mobile phone of the user
45
     */
46
    protected $mobilePhone;
47
48
    /**
49
     * @var string $taxId User Tax Id.
50
     */
51
    protected $taxId;
52
53
    /**
54
     * @var string $nationalId User National Id.
55
     */
56
    protected $nationalId;
57
58
    /**
59
     * @return string
60
     */
61
    public function getAddress()
62
    {
63
        return $this->address;
64
    }
65
66
    /**
67
     * @param string $address
68
     *
69
     * @return Address
70
     */
71
    public function setAddress($address)
72
    {
73
        $this->address = $address;
74
75
        return $this;
76
    }
77
78
    /**
79
     * @return string
80
     */
81
    public function getCity()
82
    {
83
        return $this->city;
84
    }
85
86
    /**
87
     * @param string $city
88
     *
89
     * @return Address
90
     */
91
    public function setCity($city)
92
    {
93
        $this->city = $city;
94
95
        return $this;
96
    }
97
98
    /**
99
     * @return string
100
     */
101
    public function getCountryCode()
102
    {
103
        return $this->countryCode;
104
    }
105
106
    /**
107
     * @param string $countryCode
108
     *
109
     * @return Address
110
     */
111
    public function setCountryCode($countryCode)
112
    {
113
        $this->countryCode = $countryCode;
114
115
        return $this;
116
    }
117
118
    /**
119
     * @return string
120
     */
121
    public function getFullName()
122
    {
123
        return $this->fullName;
124
    }
125
126
    /**
127
     * @param $fullName
128
     *
129
     * @return $this
130
     */
131
    public function setFullName($fullName)
132
    {
133
        $this->fullName = $fullName;
134
135
        return $this;
136
    }
137
138
    /**
139
     * @return string
140
     */
141
    public function getZipCode()
142
    {
143
        return $this->zipCode;
144
    }
145
146
    /**
147
     * @param string $zipCode
148
     *
149
     * @return Address
150
     */
151
    public function setZipCode($zipCode)
152
    {
153
        $this->zipCode = $zipCode;
154
155
        return $this;
156
    }
157
158
    /**
159
     * @return string
160
     */
161
    public function getFixPhone()
162
    {
163
        return $this->fixPhone;
164
    }
165
166
    /**
167
     * @param string $fixPhone
168
     *
169
     * @return Address
170
     */
171
    public function setFixPhone($fixPhone)
172
    {
173
        $this->fixPhone = $fixPhone;
174
175
        return $this;
176
    }
177
178
    /**
179
     * @return string
180
     */
181
    public function getMobilePhone()
182
    {
183
        return $this->mobilePhone;
184
    }
185
186
    /**
187
     * @param string $mobilePhone
188
     *
189
     * @return Address
190
     */
191
    public function setMobilePhone($mobilePhone)
192
    {
193
        $this->mobilePhone = $mobilePhone;
194
195
        return $this;
196
    }
197
    /**
198
     * @return string
199
     */
200
    public function getTaxId()
201
    {
202
        return $this->taxId;
203
    }
204
205
    /**
206
     * @param string $taxId
207
     *
208
     * @return Address
209
     */
210
    public function setTaxId($taxId)
211
    {
212
        $this->taxId = $taxId;
213
214
        return $this;
215
    }
216
217
    /**
218
     * @return string
219
     */
220
    public function getNationalId()
221
    {
222
        return $this->nationalId;
223
    }
224
225
    /**
226
     * @param string $nationalId
227
     *
228
     * @return Address
229
     */
230
    public function setNationalId($nationalId)
231
    {
232
        $this->nationalId = $nationalId;
233
234
        return $this;
235
    }
236
237
}
238