Completed
Push — develop ( 28494b...f9e001 )
by
unknown
14:37
created

InvoiceAddress::getZipCode()   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
 * @license MIT
7
 * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
 */
9
  
10
/** */
11
namespace Orders\Entity;
12
13
use Core\Entity\EntityTrait;
14
use \Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
15
16
/**
17
 * ${CARET}
18
 *
19
 * @ODM\EmbeddedDocument
20
 * @author Mathias Gelhausen <[email protected]>
21
 * @todo write test 
22
 */
23
class InvoiceAddress implements InvoiceAddressInterface
24
{
25
    use EntityTrait;
26
27
    /**
28
     * Form of address.
29
     *
30
     * @ODM\String
31
     * @var string
32
     */
33
    protected $gender;
34
35
    /**
36
     * Full name
37
     *
38
     * @ODM\String
39
     * @var string
40
     */
41
    protected $name;
42
43
    /**
44
     * Company name.
45
     *
46
     * @ODM\String
47
     * @var string
48
     */
49
    protected $company;
50
51
    /**
52
     * Street name and house number.
53
     *
54
     * @ODM\String
55
     * @var string
56
     */
57
    protected $street;
58
59
    /**
60
     * Zip code.
61
     *
62
     * @ODM\String
63
     * @var string
64
     */
65
    protected $zipCode;
66
67
    /**
68
     * City name.
69
     *
70
     * @ODM\String
71
     * @var string
72
     */
73
    protected $city;
74
75
    /**
76
     * Region.
77
     *
78
     * @ODM\String
79
     * @var string
80
     */
81
    protected $region;
82
83
    /**
84
     * Country.
85
     *
86
     * @ODM\String
87
     * @var string
88
     */
89
    protected $country;
90
91
    /**
92
     * Value added tax identification number.
93
     *
94
     * @ODM\String
95
     * @var string
96
     */
97
    protected $vatId;
98
99
    /**
100
     * Email address.
101
     *
102
     * @ODM\String
103
     * @var string
104
     */
105
    protected $email;
106
107
    public function setCity($city)
108
    {
109
        $this->city = $city;
110
111
        return $this;
112
    }
113
114
    public function getCity()
115
    {
116
        return $this->city;
117
    }
118
119
    public function setCompany($company)
120
    {
121
        $this->company = $company;
122
123
        return $this;
124
    }
125
126
    public function getCompany()
127
    {
128
        return $this->company;
129
    }
130
131
    public function setCountry($country)
132
    {
133
        $this->country = $country;
134
135
        return $this;
136
    }
137
138
    public function getCountry()
139
    {
140
        return $this->country;
141
    }
142
143
    public function setEmail($email)
144
    {
145
        $this->email = $email;
146
147
        return $this;
148
    }
149
150
    public function getEmail()
151
    {
152
        return $this->email;
153
    }
154
155
    public function setName($name)
156
    {
157
        $this->name = $name;
158
159
        return $this;
160
    }
161
162
    public function getName()
163
    {
164
        return $this->name;
165
    }
166
167
    public function setRegion($region)
168
    {
169
        $this->region = $region;
170
171
        return $this;
172
    }
173
174
    public function getRegion()
175
    {
176
        return $this->region;
177
    }
178
179
    public function setStreet($street)
180
    {
181
        $this->street = $street;
182
183
        return $this;
184
    }
185
186
    public function getStreet()
187
    {
188
        return $this->street;
189
    }
190
191
    public function setGender($gender)
192
    {
193
        $this->gender = $gender;
194
195
        return $this;
196
    }
197
198
    public function getGender()
199
    {
200
        return $this->gender;
201
    }
202
203
    public function setVatIdNumber($vatId)
204
    {
205
        $this->vatId = $vatId;
206
207
        return $this;
208
    }
209
210
    public function getVatIdNumber()
211
    {
212
        return $this->vatId;
213
    }
214
215
    public function setZipCode($zipCode)
216
    {
217
        $this->zipCode = $zipCode;
218
219
        return $this;
220
    }
221
222
    public function getZipCode()
223
    {
224
        return $this->zipCode;
225
    }
226
227
228
    
229
}