Passed
Push — new-api ( f151f9...5a646f )
by Sebastian
04:44
created

CitedItemsChangedEvent::__construct()   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 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
/*
4
 * citeproc-php: CitedItemsChanged.php
5
 * User: Sebastian Böttger <[email protected]>
6
 * created at 14.12.20, 20:57
7
 */
8
9
namespace Seboettg\CiteProc\Rendering\Observer;
10
11
use Seboettg\Collection\ArrayList\ArrayListInterface;
12
13
class CitedItemsChangedEvent implements RenderingEvent
14
{
15
16
    /** @var ArrayListInterface */
17
    private $citedItems;
18
19 103
    public function __construct(ArrayListInterface $citedItems)
20
    {
21 103
        $this->citedItems = $citedItems;
22 103
    }
23
24
    /**
25
     * @return ArrayListInterface
26
     */
27 103
    public function getCitedItems(): ArrayListInterface
28
    {
29 103
        return $this->citedItems;
30
    }
31
}
32