Passed
Branch master (6a7148)
by Curtis
01:48
created

Attr   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 42
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A addObje() 0 3 1
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
 * @package         php-gedcom
11
 * @license         MIT
12
 * @link            http://github.com/mrkrstphr/php-gedcom
13
 */
14
15
namespace PhpGedcom\Record\Indi;
16
17
use \PhpGedcom\Record\Sourceable;
18
use \PhpGedcom\Record\Noteable;
19
use \PhpGedcom\Record\Objectable;
20
21
/**
22
 *
23
 */
24
class Attr extends \PhpGedcom\Record\Indi\Even implements Sourceable, Noteable, Objectable
25
{
26
    protected $type = null;
27
    protected $_attr = null;
28
29
    /**
30
     *
31
     */
32
    protected $sour = array();
33
34
    /**
35
     *
36
     */
37
    protected $note = array();
38
39
    /**
40
     *
41
     */
42
    protected $obje = array();
43
44
    /**
45
     *
46
     */
47
    public function addSour($sour = [])
48
    {
49
        $this->sour[] = $sour;
50
    }
51
52
    /**
53
     *
54
     */
55
    public function addNote($note = [])
56
    {
57
        $this->note[] = $note;
58
    }
59
60
    /**
61
     *
62
     */
63
    public function addObje($obje = [])
64
    {
65
        $this->obje[] = $obje;
66
    }
67
}
68