Plac::setForm()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
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\Indi\Even;
16
17
use PhpGedcom\Record;
18
19
/**
20
 * Class Plac.
21
 */
22
class Plac extends Record implements Record\Noteable, Record\Sourceable
23
{
24
    /**
25
     * @var string
26
     */
27
    protected $plac;
28
29
    /**
30
     * @var string
31
     */
32
    protected $form;
33
34
    /**
35
     * @var array
36
     */
37
    protected $note = [];
38
39
    /**
40
     * @var array
41
     */
42
    protected $sour = [];
43
44
    /**
45
     * @param string $form
46
     *
47
     * @return Plac
48
     */
49
    public function setForm($form = '')
50
    {
51
        $this->form = $form;
52
53
        return $this;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getForm()
60
    {
61
        return $this->form;
62
    }
63
64
    /**
65
     * @param string $plac
66
     *
67
     * @return Plac
68
     */
69
    public function setPlac($plac = '')
70
    {
71
        $this->plac = $plac;
72
73
        return $this;
74
    }
75
76
    /**
77
     * @return string
78
     */
79
    public function getPlac()
80
    {
81
        return $this->plac;
82
    }
83
84
    /**
85
     * @return array
86
     */
87
    public function getNote()
88
    {
89
        return $this->note;
90
    }
91
92
    /**
93
     * @param Record\NoteRef $note
94
     *
95
     * @return Plac
96
     */
97
    public function addNote($note = [])
98
    {
99
        $this->note[] = $note;
100
101
        return $this;
102
    }
103
104
    /**
105
     * @return array
106
     */
107
    public function getSour()
108
    {
109
        return $this->sour;
110
    }
111
112
    /**
113
     * @param Record\SourRef $sour
114
     *
115
     * @return Plac
116
     */
117
    public function addSour($sour = [])
118
    {
119
        $this->sour[] = $sour;
120
121
        return $this;
122
    }
123
}
124