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 Subn. |
21
|
|
|
*/ |
22
|
|
|
class Subn extends Record |
23
|
|
|
{ |
24
|
|
|
/** |
25
|
|
|
* @var string |
26
|
|
|
*/ |
27
|
|
|
protected $subn; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var string |
31
|
|
|
*/ |
32
|
|
|
protected $subm; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var string |
36
|
|
|
*/ |
37
|
|
|
protected $famf; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string |
41
|
|
|
*/ |
42
|
|
|
protected $temp; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var string |
46
|
|
|
*/ |
47
|
|
|
protected $ance; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @var string |
51
|
|
|
*/ |
52
|
|
|
protected $desc; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var string |
56
|
|
|
*/ |
57
|
|
|
protected $ordi; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var string |
61
|
|
|
*/ |
62
|
|
|
protected $rin; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var array |
66
|
|
|
*/ |
67
|
|
|
protected $_note = []; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @var \PhpGedcom\Record\Chan |
71
|
|
|
*/ |
72
|
|
|
protected $_chan = null; |
73
|
|
|
|
74
|
|
|
public function setChan($chan) |
75
|
|
|
{ |
76
|
|
|
$this->_chan = $chan; |
77
|
|
|
|
78
|
|
|
return $this; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
public function getChan() |
82
|
|
|
{ |
83
|
|
|
return $this->_chan; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
public function addNote($note) |
87
|
|
|
{ |
88
|
|
|
$this->_note[] = $note; |
89
|
|
|
|
90
|
|
|
return $this; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
public function getNote() |
94
|
|
|
{ |
95
|
|
|
return $this->_note; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @param string $subn |
100
|
|
|
* |
101
|
|
|
* @return Subn |
102
|
|
|
*/ |
103
|
|
|
public function setSubn($subn = '') |
104
|
|
|
{ |
105
|
|
|
$this->subn = $subn; |
106
|
|
|
|
107
|
|
|
return $this; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @return string |
112
|
|
|
*/ |
113
|
|
|
public function getSubn() |
114
|
|
|
{ |
115
|
|
|
return $this->subn; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @param string $subm |
120
|
|
|
* |
121
|
|
|
* @return Subn |
122
|
|
|
*/ |
123
|
|
|
public function setSubm($subm = '') |
124
|
|
|
{ |
125
|
|
|
$this->subm = $subm; |
126
|
|
|
|
127
|
|
|
return $this; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @return string |
132
|
|
|
*/ |
133
|
|
|
public function getSubm() |
134
|
|
|
{ |
135
|
|
|
return $this->subm; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @param string $famf |
140
|
|
|
* |
141
|
|
|
* @return Subn |
142
|
|
|
*/ |
143
|
|
|
public function setFamf($famf = '') |
144
|
|
|
{ |
145
|
|
|
$this->famf = $famf; |
146
|
|
|
|
147
|
|
|
return $this; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @return string |
152
|
|
|
*/ |
153
|
|
|
public function getFamf() |
154
|
|
|
{ |
155
|
|
|
return $this->famf; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @param string $temp |
160
|
|
|
* |
161
|
|
|
* @return Subn |
162
|
|
|
*/ |
163
|
|
|
public function setTemp($temp = '') |
164
|
|
|
{ |
165
|
|
|
$this->temp = $temp; |
166
|
|
|
|
167
|
|
|
return $this; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* @return string |
172
|
|
|
*/ |
173
|
|
|
public function getTemp() |
174
|
|
|
{ |
175
|
|
|
return $this->temp; |
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
/** |
179
|
|
|
* @param string $ance |
180
|
|
|
* |
181
|
|
|
* @return Subn |
182
|
|
|
*/ |
183
|
|
|
public function setAnce($ance = '') |
184
|
|
|
{ |
185
|
|
|
$this->ance = $ance; |
186
|
|
|
|
187
|
|
|
return $this; |
188
|
|
|
} |
189
|
|
|
|
190
|
|
|
/** |
191
|
|
|
* @return string |
192
|
|
|
*/ |
193
|
|
|
public function getAnce() |
194
|
|
|
{ |
195
|
|
|
return $this->ance; |
196
|
|
|
} |
197
|
|
|
|
198
|
|
|
/** |
199
|
|
|
* @param string $desc |
200
|
|
|
* |
201
|
|
|
* @return Subn |
202
|
|
|
*/ |
203
|
|
|
public function setDesc($desc = '') |
204
|
|
|
{ |
205
|
|
|
$this->desc = $desc; |
206
|
|
|
|
207
|
|
|
return $this; |
208
|
|
|
} |
209
|
|
|
|
210
|
|
|
/** |
211
|
|
|
* @return string |
212
|
|
|
*/ |
213
|
|
|
public function getDesc() |
214
|
|
|
{ |
215
|
|
|
return $this->desc; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* @param string $ordi |
220
|
|
|
* |
221
|
|
|
* @return Subn |
222
|
|
|
*/ |
223
|
|
|
public function setOrdi($ordi = '') |
224
|
|
|
{ |
225
|
|
|
$this->ordi = $ordi; |
226
|
|
|
|
227
|
|
|
return $this; |
228
|
|
|
} |
229
|
|
|
|
230
|
|
|
/** |
231
|
|
|
* @return string |
232
|
|
|
*/ |
233
|
|
|
public function getOrdi() |
234
|
|
|
{ |
235
|
|
|
return $this->ordi; |
236
|
|
|
} |
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* @param string $rin |
240
|
|
|
* |
241
|
|
|
* @return Subn |
242
|
|
|
*/ |
243
|
|
|
public function setRin($rin = '') |
244
|
|
|
{ |
245
|
|
|
$this->rin = $rin; |
246
|
|
|
|
247
|
|
|
return $this; |
248
|
|
|
} |
249
|
|
|
|
250
|
|
|
/** |
251
|
|
|
* @return string |
252
|
|
|
*/ |
253
|
|
|
public function getRin() |
254
|
|
|
{ |
255
|
|
|
return $this->rin; |
256
|
|
|
} |
257
|
|
|
} |
258
|
|
|
|