Plac   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 37
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A addNote() 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
class Plac extends \PhpGedcom\Record implements Noteable
18
{
19
    /**
20
     * string plac.
21
     */
22
    protected $_plac = null;
23
    /**
24
     * string place_hierarchy.
25
     */
26
    protected $_form = null;
27
    /**
28
     * array PhpGedcom\Record\Plac\Fone.
29
     */
30
    protected $_fone = null;
31
    /**
32
     * array PhpGedcom\Record\Plac\Romn.
33
     */
34
    protected $_romn = null;
35
    /**
36
     * PhpGedcom\Record\Plac\Map.
37
     */
38
    protected $_map = null;
39
    /**
40
     * array PhpGedcom\Record\NoteRef.
41
     */
42
    protected $_note = null;
43
44
    /**
45
     * @param PhpGedcom\Record\NoteRef $note
0 ignored issues
show
Bug introduced by
The type PhpGedcom\Record\PhpGedcom\Record\NoteRef was not found. Did you mean PhpGedcom\Record\NoteRef? If so, make sure to prefix the type with \.
Loading history...
46
     *
47
     * @return Plac
48
     */
49
    public function addNote($note = null)
50
    {
51
        $this->_note[] = $note;
52
53
        return $this;
54
    }
55
}
56