Refn::getRefn()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 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 PhpGedcom\Record;
16
17
use PhpGedcom\Record;
18
19
/**
20
 * Class Refn.
21
 */
22
class Refn extends Record
23
{
24
    /**
25
     * @var string
26
     */
27
    protected $refn;
28
29
    /**
30
     * @var string
31
     */
32
    protected $type;
33
34
    /**
35
     * @param string $refn
36
     *
37
     * @return Refn
38
     */
39
    public function setRefn($refn = '')
40
    {
41
        $this->refn = $refn;
42
43
        return $this;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getRefn()
50
    {
51
        return $this->refn;
52
    }
53
54
    /**
55
     * @param string $type
56
     *
57
     * @return Refn
58
     */
59
    public function setType($type = '')
60
    {
61
        $this->type = $type;
62
63
        return $this;
64
    }
65
66
    /**
67
     * @return string
68
     */
69
    public function getType()
70
    {
71
        return $this->type;
72
    }
73
}
74