Address   A
last analyzed

Complexity

Total Complexity 16

Size/Duplication

Total Lines 186
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 16
lcom 0
cbo 0
dl 0
loc 186
rs 10
c 0
b 0
f 0

16 Methods

Rating   Name   Duplication   Size   Complexity  
A getAddress1() 0 4 1
A setAddress1() 0 4 1
A getAddress2() 0 4 1
A setAddress2() 0 4 1
A getCity() 0 4 1
A setCity() 0 4 1
A getProvince() 0 4 1
A setProvince() 0 4 1
A getProvinceCode() 0 4 1
A setProvinceCode() 0 4 1
A getPostalCode() 0 4 1
A setPostalCode() 0 4 1
A getCountry() 0 4 1
A setCountry() 0 4 1
A getCountryCode() 0 4 1
A setCountryCode() 0 4 1
1
<?php
2
/*
3
 * This file is part of the MailChimpEcommerceBundle package.
4
 *
5
 * Copyright (c) 2017 kevin92dev.es
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * Feel free to edit as you please, and have fun.
11
 *
12
 * @author Kevin Murillo <[email protected]>
13
 */
14
15
namespace Kevin92dev\MailChimpEcommerceBundle\Entities;
16
17
class Address
18
{
19
    /**
20
     * The mailing address of the customer.
21
     *
22
     * @var string
23
     */
24
    private $address1;
25
26
    /**
27
     * An additional field for the customer’s mailing address.
28
     *
29
     * @var string
30
     */
31
    private $address2;
32
33
    /**
34
     * The city the customer is located in.
35
     *
36
     * @var string
37
     */
38
    private $city;
39
40
    /**
41
     * The customer’s state name or normalized province.
42
     *
43
     * @var string
44
     */
45
    private $province;
46
47
    /**
48
     * The two-letter code for the customer’s province or state.
49
     *
50
     * @var string
51
     */
52
    private $provinceCode;
53
54
    /**
55
     * The customer’s postal or zip code.
56
     *
57
     * @var string
58
     */
59
    private $postalCode;
60
61
    /**
62
     * The customer’s country.
63
     *
64
     * @var string
65
     */
66
    private $country;
67
68
    /**
69
     * The two-letter code for the customer’s country.
70
     *
71
     * @var string
72
     */
73
    private $countryCode;
74
75
    /**
76
     * @return string
77
     */
78
    public function getAddress1()
79
    {
80
        return $this->address1;
81
    }
82
83
    /**
84
     * @param string $address1
85
     */
86
    public function setAddress1($address1)
87
    {
88
        $this->address1 = $address1;
89
    }
90
91
    /**
92
     * @return string
93
     */
94
    public function getAddress2()
95
    {
96
        return $this->address2;
97
    }
98
99
    /**
100
     * @param string $address2
101
     */
102
    public function setAddress2($address2)
103
    {
104
        $this->address2 = $address2;
105
    }
106
107
    /**
108
     * @return string
109
     */
110
    public function getCity()
111
    {
112
        return $this->city;
113
    }
114
115
    /**
116
     * @param string $city
117
     */
118
    public function setCity($city)
119
    {
120
        $this->city = $city;
121
    }
122
123
    /**
124
     * @return string
125
     */
126
    public function getProvince()
127
    {
128
        return $this->province;
129
    }
130
131
    /**
132
     * @param string $province
133
     */
134
    public function setProvince($province)
135
    {
136
        $this->province = $province;
137
    }
138
139
    /**
140
     * @return string
141
     */
142
    public function getProvinceCode()
143
    {
144
        return $this->provinceCode;
145
    }
146
147
    /**
148
     * @param string $provinceCode
149
     */
150
    public function setProvinceCode($provinceCode)
151
    {
152
        $this->provinceCode = $provinceCode;
153
    }
154
155
    /**
156
     * @return string
157
     */
158
    public function getPostalCode()
159
    {
160
        return $this->postalCode;
161
    }
162
163
    /**
164
     * @param string $postalCode
165
     */
166
    public function setPostalCode($postalCode)
167
    {
168
        $this->postalCode = $postalCode;
169
    }
170
171
    /**
172
     * @return string
173
     */
174
    public function getCountry()
175
    {
176
        return $this->country;
177
    }
178
179
    /**
180
     * @param string $country
181
     */
182
    public function setCountry($country)
183
    {
184
        $this->country = $country;
185
    }
186
187
    /**
188
     * @return string
189
     */
190
    public function getCountryCode()
191
    {
192
        return $this->countryCode;
193
    }
194
195
    /**
196
     * @param string $countryCode
197
     */
198
    public function setCountryCode($countryCode)
199
    {
200
        $this->countryCode = $countryCode;
201
    }
202
}