Attr::addObje()   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
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 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 Gedcom\Record\Indi;
16
17
use Gedcom\Record\Noteable;
18
use Gedcom\Record\Objectable;
19
use Gedcom\Record\Sourceable;
20
21
class Attr extends \Gedcom\Record\Indi\Even implements Sourceable, Noteable, Objectable
22
{
23
    protected $type;
24
    protected $_attr;
25
26
    protected $sour = [];
27
28
    protected $note = [];
29
30
    protected $obje = [];
31
32
    public function addSour($sour = [])
33
    {
34
        $this->sour[] = $sour;
35
    }
36
37
    public function addNote($note = [])
38
    {
39
        $this->note[] = $note;
40
    }
41
42
    public function addObje($obje = [])
43
    {
44
        $this->obje[] = $obje;
45
    }
46
}
47