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

AfterRender   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResult() 0 3 1
A __construct() 0 4 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