Passed
Push — new-api ( 7cf340...18d26d )
by Sebastian
12:35 queued 08:17
created

CitationDataChangedEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getCitationData() 0 3 1
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\Collection\ArrayList\ArrayListInterface;
12
13
class CitationDataChangedEvent implements RenderingEvent
14
{
15
    /** @var ArrayListInterface */
16
    protected $citationData;
17
18 81
    public function __construct(ArrayListInterface $citationData)
19
    {
20 81
        $this->citationData = $citationData;
21 81
    }
22
23 81
    public function getCitationData(): ArrayListInterface
24
    {
25 81
        return $this->citationData;
26
    }
27
}
28