Passed
Push — feature/locators-issue-82 ( cd9965...0ff576 )
by Sebastian
04:35
created

DataList::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/*
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\Citation;
13
use Seboettg\CiteProc\Style\Options\SubsequentAuthorSubstituteRule;
14
use Seboettg\Collection\ArrayList;
15
16
/**
17
 * Class DataList
18
 *
19
 * @package Seboettg\CiteProc\Data
20
 * @author Sebastian Böttger <[email protected]>
21
 */
22
class DataList extends ArrayList
23
{
24
    /**
25
     * @var string
26
     */
27
    private $subsequentAuthorSubstitute;
28
29
    /**
30
     * @var SubsequentAuthorSubstituteRule
31
     */
32
    private $subsequentAuthorSubstituteRule = "complete-all";
33
34
    /**
35
     * @return string
36
     */
37 98
    public function getSubsequentAuthorSubstitute()
38
    {
39 98
        return $this->subsequentAuthorSubstitute;
40
    }
41
42
    /**
43
     * @param string $subsequentAuthorSubstitute
44
     */
45 12
    public function setSubsequentAuthorSubstitute($subsequentAuthorSubstitute)
46
    {
47 12
        $this->subsequentAuthorSubstitute = $subsequentAuthorSubstitute;
48 12
    }
49
50
    /**
51
     * @return SubsequentAuthorSubstituteRule
52
     */
53 98
    public function getSubsequentAuthorSubstituteRule()
54
    {
55 98
        return $this->subsequentAuthorSubstituteRule;
56
    }
57
58
    /**
59
     * @param SubsequentAuthorSubstituteRule $subsequentAuthorSubstituteRule
60
     */
61 12
    public function setSubsequentAuthorSubstituteRule(SubsequentAuthorSubstituteRule $subsequentAuthorSubstituteRule)
62
    {
63 12
        $this->subsequentAuthorSubstituteRule = $subsequentAuthorSubstituteRule;
64 12
    }
65
}
66