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

Name::addNote()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 2
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\Indi;
16
17
/**
18
 * @method string getName()
19
 * @method string getNpfx()
20
 * @method string getGivn()
21
 * @method string getNick()
22
 * @method string getSpfx()
23
 * @method string getSurn()
24
 * @method string getNsfx()
25
 */
26
class Name extends \PhpGedcom\Record implements \PhpGedcom\Record\Sourceable {
27
	protected $_name = null;
28
	protected $_npfx = null;
29
	protected $_givn = null;
30
	protected $_nick = null;
31
	protected $_spfx = null;
32
	protected $_surn = null;
33
	protected $_nsfx = null;
34
	protected $_fone = null; // PhpGedcom/
35
	protected $_romn = null;
36
	protected $_type = null;
37
	/**
38
	 *
39
	 */
40
	protected $_note = array();
41
42
	/**
43
	 *
44
	 */
45
	protected $_sour = array();
46
47
	/**
48
	 *
49
	 */
50
	public function addSour($sour = []) {
51
		$this->_sour[] = $sour;
52
	}
53
54
	/**
55
	 *
56
	 */
57
	public function addNote($note = []) {
58
		$this->_note[] = $note;
59
	}
60
}
61