Fone   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 54
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addNote() 0 3 1
A addSour() 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\Name;
16
17
use PhpGedcom\Record;
18
19
/**
20
 * Class Refn.
21
 */
22
class Fone extends Record
23
{
24
    /**
25
     * @var string phonetic_variation
26
     */
27
    protected $fone;
28
29
    /**
30
     * @var string phonetic_type
31
     */
32
    protected $type;
33
    /**
34
     * string name_piece_prefix.
35
     */
36
    protected $_npfx = null;
37
    /**
38
     * string name_piece_given.
39
     */
40
    protected $_givn = null;
41
    /**
42
     * string name_piece_nickname.
43
     */
44
    protected $_nick = null;
45
    /**
46
     * strign name_piece_surname_prefix.
47
     */
48
    protected $_spfx = null;
49
    /**
50
     * string name_piece_surname.
51
     */
52
    protected $_surn = null;
53
    /**
54
     * string name_piece_suffix.
55
     */
56
    protected $_nsfx = null;
57
58
    /**
59
     * PhpGedcom\Record\NoteRef.
60
     */
61
    protected $_note = [];
62
63
    /**
64
     * PhpGedcom\Record\SourRef.
65
     */
66
    protected $_sour = [];
67
68
    public function addSour($sour = [])
69
    {
70
        $this->_sour[] = $sour;
71
    }
72
73
    public function addNote($note = [])
74
    {
75
        $this->_note[] = $note;
76
    }
77
}
78