Test Failed
Push — master ( c022d4...2a4336 )
by Curtis
09:52 queued 06:50
created

Even::getDate()   A

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
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
0 ignored issues
show
Bug introduced by
The type PhpGedcom\Record\Indi\Even\Plac was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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;
0 ignored issues
show
Bug introduced by
The property obje does not exist on Gedcom\Record\Fam\Even. Did you mean _obje?
Loading history...
109
    }
110
111
    /**
112
     * @return \PhpGedcom\Record\Addr
0 ignored issues
show
Bug introduced by
The type PhpGedcom\Record\Addr was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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