Addr   A
last analyzed

Complexity

Total Complexity 14

Size/Duplication

Total Lines 175
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 29
dl 0
loc 175
rs 10
c 0
b 0
f 0
wmc 14

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getPost() 0 3 1
A setAddr() 0 5 1
A getCity() 0 3 1
A getStae() 0 3 1
A setAdr1() 0 5 1
A setCtry() 0 5 1
A getAdr1() 0 3 1
A getCtry() 0 3 1
A getAddr() 0 3 1
A getAdr2() 0 3 1
A setAdr2() 0 5 1
A setStae() 0 5 1
A setCity() 0 5 1
A setPost() 0 5 1
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
 * @license         MIT
11
 *
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
 */
22
class Addr extends Record
23
{
24
    /**
25
     * @var string
26
     */
27
    protected $addr;
28
29
    /**
30
     * @var string
31
     */
32
    protected $adr1;
33
34
    /**
35
     * @var string
36
     */
37
    protected $adr2;
38
39
    /**
40
     * @var string
41
     */
42
    protected $city;
43
44
    /**
45
     * @var string
46
     */
47
    protected $stae;
48
49
    /**
50
     * @var string
51
     */
52
    protected $post;
53
54
    /**
55
     * @var string
56
     */
57
    protected $ctry;
58
59
    /**
60
     * @param string $addr
61
     *
62
     * @return Addr
63
     */
64
    public function setAddr($addr = '')
65
    {
66
        $this->addr = $addr;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function getAddr()
75
    {
76
        return $this->addr;
77
    }
78
79
    /**
80
     * @param string $adr1
81
     *
82
     * @return Addr
83
     */
84
    public function setAdr1($adr1 = '')
85
    {
86
        $this->adr1 = $adr1;
87
88
        return $this;
89
    }
90
91
    /**
92
     * @return string
93
     */
94
    public function getAdr1()
95
    {
96
        return $this->adr1;
97
    }
98
99
    /**
100
     * @param string $adr2
101
     *
102
     * @return Addr
103
     */
104
    public function setAdr2($adr2 = '')
105
    {
106
        $this->adr2 = $adr2;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getAdr2()
115
    {
116
        return $this->adr2;
117
    }
118
119
    /**
120
     * @param string $city
121
     *
122
     * @return Addr
123
     */
124
    public function setCity($city = '')
125
    {
126
        $this->city = $city;
127
128
        return $this;
129
    }
130
131
    /**
132
     * @return string
133
     */
134
    public function getCity()
135
    {
136
        return $this->city;
137
    }
138
139
    /**
140
     * @param string $stae
141
     *
142
     * @return Addr
143
     */
144
    public function setStae($stae = '')
145
    {
146
        $this->stae = $stae;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @return string
153
     */
154
    public function getStae()
155
    {
156
        return $this->stae;
157
    }
158
159
    /**
160
     * @param string $post
161
     *
162
     * @return Addr
163
     */
164
    public function setPost($post = '')
165
    {
166
        $this->post = $post;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @return string
173
     */
174
    public function getPost()
175
    {
176
        return $this->post;
177
    }
178
179
    /**
180
     * @param string $ctry
181
     *
182
     * @return Addr
183
     */
184
    public function setCtry($ctry = '')
185
    {
186
        $this->ctry = $ctry;
187
188
        return $this;
189
    }
190
191
    /**
192
     * @return string
193
     */
194
    public function getCtry()
195
    {
196
        return $this->ctry;
197
    }
198
}
199