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\Fam; |
16
|
|
|
|
17
|
|
|
use Gedcom\Record\Noteable; |
18
|
|
|
use Gedcom\Record\Objectable; |
19
|
|
|
use Gedcom\Record\Sourceable; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* Event record. |
23
|
|
|
* |
24
|
|
|
* @method mixed getType() |
25
|
|
|
* @method \Record\Date getDate() |
26
|
|
|
* @method string getPlac() |
27
|
|
|
*/ |
28
|
|
|
class Even extends \Gedcom\Record implements Objectable, Sourceable, Noteable |
29
|
|
|
{ |
30
|
|
|
protected $_type; |
31
|
|
|
protected $_date; |
32
|
|
|
protected $_plac; |
33
|
|
|
protected $_caus; |
34
|
|
|
protected $_age; |
35
|
|
|
|
36
|
|
|
protected $_addr; |
37
|
|
|
|
38
|
|
|
protected $_phon = []; |
39
|
|
|
|
40
|
|
|
protected $_agnc; |
41
|
|
|
|
42
|
|
|
protected $_husb; |
43
|
|
|
protected $_wife; |
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
|
|
|
/** |
72
|
|
|
* @return string |
73
|
|
|
*/ |
74
|
|
|
public function getDate() |
75
|
|
|
{ |
76
|
|
|
return $this->_date; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @return \PhpGedcom\Record\Indi\Even\Plac |
|
|
|
|
81
|
|
|
*/ |
82
|
|
|
public function getPlac() |
83
|
|
|
{ |
84
|
|
|
return $this->_plac; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @return array |
89
|
|
|
*/ |
90
|
|
|
public function getSour() |
91
|
|
|
{ |
92
|
|
|
return $this->_sour; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @return array |
97
|
|
|
*/ |
98
|
|
|
public function getNote() |
99
|
|
|
{ |
100
|
|
|
return $this->_note; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @return array |
105
|
|
|
*/ |
106
|
|
|
public function getObje() |
107
|
|
|
{ |
108
|
|
|
return $this->obje; |
|
|
|
|
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @return \PhpGedcom\Record\Addr |
|
|
|
|
113
|
|
|
*/ |
114
|
|
|
public function getAddr() |
115
|
|
|
{ |
116
|
|
|
return $this->_addr; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @return string |
121
|
|
|
*/ |
122
|
|
|
public function getAge() |
123
|
|
|
{ |
124
|
|
|
return $this->_age; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @return string |
129
|
|
|
*/ |
130
|
|
|
public function getAgnc() |
131
|
|
|
{ |
132
|
|
|
return $this->_agnc; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @return string |
137
|
|
|
*/ |
138
|
|
|
public function getCaus() |
139
|
|
|
{ |
140
|
|
|
return $this->_caus; |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* @return string |
145
|
|
|
*/ |
146
|
|
|
public function getType() |
147
|
|
|
{ |
148
|
|
|
return $this->_type; |
149
|
|
|
} |
150
|
|
|
} |
151
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths