Passed
Push — master ( d2184e...ee1eb5 )
by Sebastian
04:46
created

DataList::getSubsequentAuthorSubstituteRule()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/*
1 ignored issue
show
Coding Style introduced by
You must use "/**" style comments for a file comment
Loading history...
3
 * citeproc-php
4
 *
5
 * @link        http://github.com/seboettg/citeproc-php for the source repository
6
 * @copyright   Copyright (c) 2017 Sebastian Böttger.
7
 * @license     https://opensource.org/licenses/MIT
8
 */
9
10
namespace Seboettg\CiteProc\Data;
11
12
use Seboettg\CiteProc\Style\Options\SubsequentAuthorSubstituteRule;
13
use Seboettg\Collection\ArrayList;
14
15
/**
16
 * Class DataList
17
 *
18
 * @package Seboettg\CiteProc\Data
19
 * @author Sebastian Böttger <[email protected]>
1 ignored issue
show
Coding Style introduced by
Tag value indented incorrectly; expected 2 spaces but found 1
Loading history...
20
 */
3 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
21
class DataList extends ArrayList
22
{
23
    /**
1 ignored issue
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
24
     * @var string
25
     */
26
    private $subsequentAuthorSubstitute;
0 ignored issues
show
Coding Style introduced by
Private member variable "subsequentAuthorSubstitute" must be prefixed with an underscore
Loading history...
27
28
    /**
1 ignored issue
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
29
     * @var SubsequentAuthorSubstituteRule
30
     */
31
    private $subsequentAuthorSubstituteRule = "complete-all";
0 ignored issues
show
Coding Style introduced by
Private member variable "subsequentAuthorSubstituteRule" must be prefixed with an underscore
Loading history...
32
33
    /**
1 ignored issue
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
34
     * @var Citation
0 ignored issues
show
Bug introduced by
The type Seboettg\CiteProc\Data\Citation 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...
35
     */
36
    private $citation;
0 ignored issues
show
Coding Style introduced by
Private member variable "citation" must be prefixed with an underscore
Loading history...
37
38 142
    public function __construct(array $data = [], $citation = null)
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function __construct()
Loading history...
39
    {
40 142
        parent::__construct($data);
41 142
        $this->citation = $citation;
42 142
    }
43
44
    /**
1 ignored issue
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
45
     * @return string
46
     */
47 88
    public function getSubsequentAuthorSubstitute()
48
    {
49 88
        return $this->subsequentAuthorSubstitute;
50
    }
51
52
    /**
1 ignored issue
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
53
     * @param string $subsequentAuthorSubstitute
1 ignored issue
show
Coding Style introduced by
Missing parameter comment
Loading history...
54
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
55 10
    public function setSubsequentAuthorSubstitute($subsequentAuthorSubstitute)
56
    {
57 10
        $this->subsequentAuthorSubstitute = $subsequentAuthorSubstitute;
58 10
    }
59
60
    /**
1 ignored issue
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
61
     * @return SubsequentAuthorSubstituteRule
62
     */
63 88
    public function getSubsequentAuthorSubstituteRule()
64
    {
65 88
        return $this->subsequentAuthorSubstituteRule;
66
    }
67
68
    /**
1 ignored issue
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
69
     * @param SubsequentAuthorSubstituteRule $subsequentAuthorSubstituteRule
1 ignored issue
show
Coding Style introduced by
Missing parameter comment
Loading history...
70
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
71 10
    public function setSubsequentAuthorSubstituteRule(SubsequentAuthorSubstituteRule $subsequentAuthorSubstituteRule)
72
    {
73 10
        $this->subsequentAuthorSubstituteRule = $subsequentAuthorSubstituteRule;
74 10
    }
75
76
77
78
}