Plac::addNote()   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
eloc 2
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 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 Gedcom\Record;
16
17
class Plac extends \Gedcom\Record implements Noteable
18
{
19
    /**
20
     * string plac.
21
     */
22
    protected $_plac;
23
    /**
24
     * string place_hierarchy.
25
     */
26
    protected $_form;
27
    /**
28
     * array PhpRecord\Plac\Fone.
29
     */
30
    protected $_fone;
31
    /**
32
     * array PhpRecord\Plac\Romn.
33
     */
34
    protected $_romn;
35
    /**
36
     * PhpRecord\Plac\Map.
37
     */
38
    protected $_map;
39
    /**
40
     * array PhpRecord\NoteRef.
41
     */
42
    protected $_note;
43
44
    /**
45
     * @param PhpRecord\NoteRef $note
0 ignored issues
show
Bug introduced by
The type Gedcom\Record\PhpRecord\NoteRef was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

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