Name   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 15
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addSour() 0 3 1
A addNote() 0 3 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\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
{
28
    protected $_name = null;
29
    protected $_npfx = null;
30
    protected $_givn = null;
31
    protected $_nick = null;
32
    protected $_spfx = null;
33
    protected $_surn = null;
34
    protected $_nsfx = null;
35
    protected $_fone = null; // PhpGedcom/
36
    protected $_romn = null;
37
    protected $_type = null;
38
39
    protected $_note = [];
40
41
    protected $_sour = [];
42
43
    public function addSour($sour = [])
44
    {
45
        $this->_sour[] = $sour;
46
    }
47
48
    public function addNote($note = [])
49
    {
50
        $this->_note[] = $note;
51
    }
52
}
53