Passed
Push — new-api ( 34a0a9...30b18d )
by Sebastian
04:06
created

StateChangedEvent::__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 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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\CiteProc\Config\RenderingState;
14
15
class StateChangedEvent implements RenderingEvent
16
{
17
    private $renderingState;
18
19 61
    public function __construct(RenderingState $renderingState)
20
    {
21 61
        $this->renderingState = $renderingState;
22 61
    }
23
24
    /**
25
     * @return RenderingState
26
     */
27 58
    public function getRenderingState(): RenderingState
28
    {
29 58
        return $this->renderingState;
30
    }
31
}
32