Passed
Pull Request — master (#21)
by Cesar
03:00
created

Address::setCountryCode()   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
     * @var OrderHistory[] $orderHistory Array of previous orders
60
61
    /**
62
     * @return string
63
     */
64
    public function getAddress()
65
    {
66
        return $this->address;
67
    }
68
69
    /**
70
     * @param string $address
71
     *
72
     * @return Address
73
     */
74
    public function setAddress($address)
75
    {
76
        $this->address = $address;
77
78
        return $this;
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function getCity()
85
    {
86
        return $this->city;
87
    }
88
89
    /**
90
     * @param string $city
91
     *
92
     * @return Address
93
     */
94
    public function setCity($city)
95
    {
96
        $this->city = $city;
97
98
        return $this;
99
    }
100
101
    /**
102
     * @return string
103
     */
104
    public function getCountryCode()
105
    {
106
        return $this->countryCode;
107
    }
108
109
    /**
110
     * @param string $countryCode
111
     *
112
     * @return Address
113
     */
114
    public function setCountryCode($countryCode)
115
    {
116
        $this->countryCode = $countryCode;
117
118
        return $this;
119
    }
120
121
    /**
122
     * @return string
123
     */
124
    public function getFullName()
125
    {
126
        return $this->fullName;
127
    }
128
129
    /**
130
     * @param $fullName
131
     *
132
     * @return $this
133
     */
134
    public function setFullName($fullName)
135
    {
136
        $this->fullName = $fullName;
137
138
        return $this;
139
    }
140
141
    /**
142
     * @return string
143
     */
144
    public function getZipCode()
145
    {
146
        return $this->zipCode;
147
    }
148
149
    /**
150
     * @param string $zipCode
151
     *
152
     * @return Address
153
     */
154
    public function setZipCode($zipCode)
155
    {
156
        $this->zipCode = $zipCode;
157
158
        return $this;
159
    }
160
161
    /**
162
     * @return string
163
     */
164
    public function getFixPhone()
165
    {
166
        return $this->fixPhone;
167
    }
168
169
    /**
170
     * @param string $fixPhone
171
     *
172
     * @return Address
173
     */
174
    public function setFixPhone($fixPhone)
175
    {
176
        $this->fixPhone = $fixPhone;
177
178
        return $this;
179
    }
180
181
    /**
182
     * @return string
183
     */
184
    public function getMobilePhone()
185
    {
186
        return $this->mobilePhone;
187
    }
188
189
    /**
190
     * @param string $mobilePhone
191
     *
192
     * @return Address
193
     */
194
    public function setMobilePhone($mobilePhone)
195
    {
196
        $this->mobilePhone = $mobilePhone;
197
198
        return $this;
199
    }
200
    /**
201
     * @return string
202
     */
203
    public function getTaxId()
204
    {
205
        return $this->taxId;
206
    }
207
208
    /**
209
     * @param string $taxId
210
     *
211
     * @return Address
212
     */
213
    public function setTaxId($taxId)
214
    {
215
        $this->taxId = $taxId;
216
217
        return $this;
218
    }
219
220
    /**
221
     * @return string
222
     */
223
    public function getNationalId()
224
    {
225
        return $this->nationalId;
226
    }
227
228
    /**
229
     * @param string $nationalId
230
     *
231
     * @return Address
232
     */
233
    public function setNationalId($nationalId)
234
    {
235
        $this->nationalId = $nationalId;
236
237
        return $this;
238
    }
239
240
}
241