Phon   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPhon() 0 3 1
A setPhon() 0 5 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 Phon.
21
 */
22
class Phon extends Record
23
{
24
    /**
25
     * @var string
26
     */
27
    protected $phon = null;
28
29
    /**
30
     * @param $phon
31
     *
32
     * @return Phon
33
     */
34
    public function setPhon($phon = [])
35
    {
36
        $this->phon = $phon;
37
38
        return $this;
39
    }
40
41
    /**
42
     * @return null|string
43
     */
44
    public function getPhon()
45
    {
46
        return $this->phon;
47
    }
48
}
49