Data   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Importance

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

4 Methods

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