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

CitedItemsChanged   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 60%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getCitedItems() 0 3 1
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 CitedItemsChanged implements RenderingEvent
14
{
15
16
    /** @var ArrayListInterface */
17
    private $citedItems;
18
19 104
    public function __construct(ArrayListInterface $citedItems)
20
    {
21 104
        $this->citedItems = $citedItems;
22 104
    }
23
24
    /**
25
     * @return ArrayListInterface
26
     */
27
    public function getCitedItems(): ArrayListInterface
28
    {
29
        return $this->citedItems;
30
    }
31
}
32