Obje   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A addRefn() 0 3 1
A addSour() 0 3 1
A addFile() 0 3 1
A addNote() 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;
16
17
class Obje extends \PhpGedcom\Record implements Noteable
18
{
19
    protected $_id = null;
20
21
    protected $_file = [];
22
    protected $_rin = null;
23
    protected $_chan = null;
24
25
    protected $_refn = [];
26
27
    protected $_note = [];
28
29
    protected $_sour = [];
30
31
    public function addRefn($refn = [])
32
    {
33
        $this->_refn[] = $refn;
34
    }
35
36
    public function addNote($note = [])
37
    {
38
        $this->_note[] = $note;
39
    }
40
41
    public function addFile($file)
42
    {
43
        $this->_file[] = $file;
44
    }
45
46
    public function addSour($sour)
47
    {
48
        $this->_sour[] = $sour;
49
    }
50
}
51