Even::addSour()   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\Fam;
16
17
use PhpGedcom\Record\Noteable;
18
use PhpGedcom\Record\Objectable;
19
use PhpGedcom\Record\Sourceable;
20
21
/**
22
 * Event record.
23
 *
24
 * @method mixed                  getType()
25
 * @method \PhpGedcom\Record\Date getDate()
26
 * @method string                 getPlac()
27
 */
28
class Even extends \PhpGedcom\Record implements Objectable, Sourceable, Noteable
29
{
30
    protected $_type = null;
31
    protected $_date = null;
32
    protected $_plac = null;
33
    protected $_caus = null;
34
    protected $_age = null;
35
36
    protected $_addr = null;
37
38
    protected $_phon = [];
39
40
    protected $_agnc = null;
41
42
    protected $_husb = null;
43
    protected $_wife = null;
44
45
    protected $_obje = [];
46
47
    protected $_sour = [];
48
49
    protected $_note = [];
50
51
    public function addPhon($phon = [])
52
    {
53
        $this->_phon[] = $phon;
54
    }
55
56
    public function addObje($obje = [])
57
    {
58
        $this->_obje[] = $obje;
59
    }
60
61
    public function addSour($sour = [])
62
    {
63
        $this->_sour[] = $sour;
64
    }
65
66
    public function addNote($note = [])
67
    {
68
        $this->_note[] = $note;
69
    }
70
}
71