Sour   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 74
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 14
dl 0
loc 74
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getVersion() 0 3 1
A setData() 0 3 1
A setCorp() 0 3 1
A getCorp() 0 3 1
A setVersion() 0 3 1
A getName() 0 3 1
A setName() 0 3 1
A getData() 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\Head;
16
17
class Sour extends \PhpGedcom\Record
18
{
19
    protected $_sour = null;
20
21
    protected $_vers = null;
22
23
    protected $_name = null;
24
25
    protected $_corp = null;
26
27
    protected $_data = null;
28
29
    /**
30
     * @param Sour\Corp $corp
31
     */
32
    public function setCorp($corp = [])
33
    {
34
        $this->_corp = $corp;
35
    }
36
37
    /**
38
     * @return Sour\Corp
39
     */
40
    public function getCorp()
41
    {
42
        return $this->_corp;
43
    }
44
45
    /**
46
     * @param \PhpGedcom\Record\Head\Sour\Data $data
47
     */
48
    public function setData($data = [])
49
    {
50
        $this->_data = $data;
51
    }
52
53
    /**
54
     * @return \PhpGedcom\Record\Head\Sour\Data
55
     */
56
    public function getData()
57
    {
58
        return $this->_data;
59
    }
60
61
    /**
62
     * @return Sour\Name
0 ignored issues
show
Bug introduced by
The type PhpGedcom\Record\Head\Sour\Name 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...
63
     */
64
    public function getName()
65
    {
66
        return $this->_name;
67
    }
68
69
    /**
70
     * @param Sour\Name
71
     */
72
    public function setName($name = [])
73
    {
74
        $this->_name = $name;
75
    }
76
77
    /**
78
     * @return Sour\Version
0 ignored issues
show
Bug introduced by
The type PhpGedcom\Record\Head\Sour\Version 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...
79
     */
80
    public function getVersion()
81
    {
82
        return $this->_vers;
83
    }
84
85
    /**
86
     * @param Sour\Version
87
     */
88
    public function setVersion($version = [])
89
    {
90
        $this->_vers = $version;
91
    }
92
}
93