Passed
Push — master ( 9932aa...016244 )
by Alexander
01:27
created

AfterRender::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\View\Event;
6
7
/**
8
 * AfterRender event is triggered by {@see View::renderFile()} right after it renders a view file.
9
 */
10
class AfterRender extends ViewEvent
11
{
12
    private string $result;
13
14 8
    public function __construct(string $file, array $parameters, string $result)
15
    {
16 8
        $this->result = $result;
17 8
        parent::__construct($file, $parameters);
18
    }
19
20 8
    public function getResult(): string
21
    {
22 8
        return $this->result;
23
    }
24
}
25