Test Failed
Push — new-api ( 275856...44902a )
by Sebastian
07:02
created

CitationItemsChangedEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCitationItems() 0 3 1
A __construct() 0 3 1
1
<?php
2
declare(strict_types=1);
3
/*
4
 * citeproc-php
5
 *
6
 * @link        http://github.com/seboettg/citeproc-php for the source repository
7
 * @copyright   Copyright (c) 2020 Sebastian Böttger.
8
 * @license     https://opensource.org/licenses/MIT
9
 */
10
11
namespace Seboettg\CiteProc\Rendering\Observer;
12
13
use Seboettg\Collection\ArrayList\ArrayListInterface;
14
15
class CitationItemsChangedEvent implements RenderingEvent
16
{
17
    /** @var ArrayListInterface */
18
    private $citationItems;
19
20
    public function __construct(ArrayListInterface $citationItems)
21
    {
22
        $this->citationItems = $citationItems;
23
    }
24
25
    /**
26
     * @return ArrayListInterface
27
     */
28
    public function getCitationItems(): ArrayListInterface
29
    {
30
        return $this->citationItems;
31
    }
32
}
33