Passed
Branch master (6a7148)
by Curtis
01:48
created

Addr::getAdr2()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * php-gedcom
4
 *
5
 * php-gedcom is a library for parsing, manipulating, importing and exporting
6
 * GEDCOM 5.5 files in PHP 5.3+.
7
 *
8
 * @author          Kristopher Wilson <[email protected]>
9
 * @copyright       Copyright (c) 2010-2013, Kristopher Wilson
10
 * @package         php-gedcom
11
 * @license         MIT
12
 * @link            http://github.com/mrkrstphr/php-gedcom
13
 */
14
15
namespace PhpGedcom\Record;
16
17
use PhpGedcom\Record;
18
19
/**
20
 * Class Addr
21
 * @package PhpGedcom\Record
22
 */
23
class Addr extends Record
24
{
25
    /**
26
     * @var string
27
     */
28
    protected $addr;
29
30
    /**
31
     * @var string
32
     */
33
    protected $adr1;
34
35
    /**
36
     * @var string
37
     */
38
    protected $adr2;
39
40
    /**
41
     * @var string
42
     */
43
    protected $city;
44
45
    /**
46
     * @var string
47
     */
48
    protected $stae;
49
50
    /**
51
     * @var string
52
     */
53
    protected $post;
54
55
    /**
56
     * @var string
57
     */
58
    protected $ctry;
59
60
    /**
61
     * @param string $addr
62
     * @return Addr
63
     */
64
    public function setAddr($addr = '')
65
    {
66
        $this->addr = $addr;
67
        return $this;
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getAddr()
74
    {
75
        return $this->addr;
76
    }
77
78
    /**
79
     * @param string $adr1
80
     * @return Addr
81
     */
82
    public function setAdr1($adr1 = '')
83
    {
84
        $this->adr1 = $adr1;
85
        return $this;
86
    }
87
88
    /**
89
     * @return string
90
     */
91
    public function getAdr1()
92
    {
93
        return $this->adr1;
94
    }
95
96
    /**
97
     * @param string $adr2
98
     * @return Addr
99
     */
100
    public function setAdr2($adr2 = '')
101
    {
102
        $this->adr2 = $adr2;
103
        return $this;
104
    }
105
106
    /**
107
     * @return string
108
     */
109
    public function getAdr2()
110
    {
111
        return $this->adr2;
112
    }
113
114
    /**
115
     * @param string $city
116
     * @return Addr
117
     */
118
    public function setCity($city = '')
119
    {
120
        $this->city = $city;
121
        return $this;
122
    }
123
124
    /**
125
     * @return string
126
     */
127
    public function getCity()
128
    {
129
        return $this->city;
130
    }
131
132
    /**
133
     * @param string $stae
134
     * @return Addr
135
     */
136
    public function setStae($stae = '')
137
    {
138
        $this->stae = $stae;
139
        return $this;
140
    }
141
142
    /**
143
     * @return string
144
     */
145
    public function getStae()
146
    {
147
        return $this->stae;
148
    }
149
150
    /**
151
     * @param string $post
152
     * @return Addr
153
     */
154
    public function setPost($post = '')
155
    {
156
        $this->post = $post;
157
        return $this;
158
    }
159
160
    /**
161
     * @return string
162
     */
163
    public function getPost()
164
    {
165
        return $this->post;
166
    }
167
168
    /**
169
     * @param string $ctry
170
     * @return Addr
171
     */
172
    public function setCtry($ctry = '')
173
    {
174
        $this->ctry = $ctry;
175
        return $this;
176
    }
177
178
    /**
179
     * @return string
180
     */
181
    public function getCtry()
182
    {
183
        return $this->ctry;
184
    }
185
}
186