Passed
Push — new-api ( 220eb6...4bfe18 )
by Sebastian
06:58
created

CitationDataChangedEvent::getCitationData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 1
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
/*
4
 * citeproc-php: CitationDataChangedEvent.php
5
 * User: Sebastian Böttger <[email protected]>
6
 * created at 14.12.20, 21:10
7
 */
8
9
namespace Seboettg\CiteProc\Rendering\Observer;
10
11
use Seboettg\CiteProc\Data\DataList;
12
13
class CitationDataChangedEvent implements RenderingEvent
14
{
15
    /** @var DataList */
16
    protected $citationData;
17
18 80
    public function __construct(DataList $citationData)
19
    {
20 80
        $this->citationData = $citationData;
21 80
    }
22
23
    public function getCitationData(): DataList
24
    {
25
        return $this->citationData;
26
    }
27
}
28