| Total Complexity | 8 |
| Total Lines | 100 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class Plac extends \Gedcom\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() |
||
| 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() |
||
| 110 | } |
||
| 111 | |||
| 112 | /** |
||
| 113 | * @param Record\SourRef $sour |
||
| 114 | * |
||
| 115 | * @return Plac |
||
| 116 | */ |
||
| 117 | public function addSour($sour = []) |
||
| 124 |