Test Failed
Push — master ( 9d4e41...1cd52c )
by Sebastian
03:24
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
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
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\SubsequentAuthorSubstituteRule;
13
use Seboettg\Collection\ArrayList;
14
15
/**
16
 * Class DataList
17
 *
18
 * @package Seboettg\CiteProc\Data
19
 * @author Sebastian Böttger <[email protected]>
20
 */
21
class DataList extends ArrayList
22
{
23
    /**
24
     * @var string
25
     */
26
    private $subsequentAuthorSubstitute;
27
28
    /**
29
     * @var SubsequentAuthorSubstituteRule
30
     */
31
    private $subsequentAuthorSubstituteRule;
32
33
    public function __construct(array $data = [])
34
    {
35
        parent::__construct($data);
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getSubsequentAuthorSubstitute()
42
    {
43
        return $this->subsequentAuthorSubstitute;
44
    }
45
46
    /**
47
     * @param string $subsequentAuthorSubstitute
48
     */
49
    public function setSubsequentAuthorSubstitute($subsequentAuthorSubstitute)
50
    {
51
        $this->subsequentAuthorSubstitute = $subsequentAuthorSubstitute;
52
    }
53
54
    /**
55
     * @return SubsequentAuthorSubstituteRule
56
     */
57
    public function getSubsequentAuthorSubstituteRule()
58
    {
59
        return $this->subsequentAuthorSubstituteRule;
60
    }
61
62
    /**
63
     * @param SubsequentAuthorSubstituteRule $subsequentAuthorSubstituteRule
64
     */
65
    public function setSubsequentAuthorSubstituteRule(SubsequentAuthorSubstituteRule $subsequentAuthorSubstituteRule)
66
    {
67
        $this->subsequentAuthorSubstituteRule = $subsequentAuthorSubstituteRule;
68
    }
69
70
71
72
}