Refn   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 9
dl 0
loc 50
c 0
b 0
f 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getRefn() 0 3 1
A setType() 0 5 1
A setRefn() 0 5 1
A getType() 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 Gedcom\Record;
16
17
/**
18
 * Class Refn.
19
 */
20
class Refn extends \Gedcom\Record
21
{
22
    /**
23
     * @var string
24
     */
25
    protected $refn;
26
27
    /**
28
     * @var string
29
     */
30
    protected $type;
31
32
    /**
33
     * @param string $refn
34
     *
35
     * @return Refn
36
     */
37
    public function setRefn($refn = '')
38
    {
39
        $this->refn = $refn;
40
41
        return $this;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getRefn()
48
    {
49
        return $this->refn;
50
    }
51
52
    /**
53
     * @param string $type
54
     *
55
     * @return Refn
56
     */
57
    public function setType($type = '')
58
    {
59
        $this->type = $type;
60
61
        return $this;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getType()
68
    {
69
        return $this->type;
70
    }
71
}
72