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

Even   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 18
dl 0
loc 57
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A addObje() 0 2 1
A addPhon() 0 2 1
A addNote() 0 2 1
A addSour() 0 2 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\Fam;
16
17
use \PhpGedcom\Record\Noteable;
18
use \PhpGedcom\Record\Objectable;
19
use \PhpGedcom\Record\Sourceable;
20
21
/**
22
 *
23
 * Event record.
24
 *
25
 * @method mixed getType()
26
 * @method \PhpGedcom\Record\Date getDate()
27
 * @method string getPlac()
28
 */
29
class Even extends \PhpGedcom\Record implements Objectable, Sourceable, Noteable {
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 = array();
39
40
	protected $_agnc = null;
41
42
	protected $_husb = null;
43
	protected $_wife = null;
44
45
	/**
46
	 *
47
	 */
48
	protected $_obje = array();
49
50
	/**
51
	 *
52
	 */
53
	protected $_sour = array();
54
55
	/**
56
	 *
57
	 */
58
	protected $_note = array();
59
60
	/**
61
	 *
62
	 */
63
	public function addPhon($phon = []) {
64
		$this->_phon[] = $phon;
65
	}
66
67
	/**
68
	 *
69
	 */
70
	public function addObje($obje = []) {
71
		$this->_obje[] = $obje;
72
	}
73
74
	/**
75
	 *
76
	 */
77
	public function addSour($sour = []) {
78
		$this->_sour[] = $sour;
79
	}
80
81
	/**
82
	 *
83
	 */
84
	public function addNote($note = []) {
85
		$this->_note[] = $note;
86
	}
87
}
88