Asso::addNote()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
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
 * @license         MIT
11
 *
12
 * @link            http://github.com/mrkrstphr/php-gedcom
13
 */
14
15
namespace PhpGedcom\Record\Indi;
16
17
use PhpGedcom\Record\Noteable;
18
use PhpGedcom\Record\Sourceable;
19
20
class Asso extends \PhpGedcom\Record implements Sourceable, Noteable
21
{
22
    protected $_indi = null;
23
    protected $_rela = null;
24
25
    protected $_note = [];
26
27
    protected $_sour = [];
28
29
    public function addNote($note = [])
30
    {
31
        $this->_note[] = $note;
32
    }
33
34
    public function addSour($sour = [])
35
    {
36
        $this->_sour[] = $sour;
37
    }
38
}
39