Passed
Pull Request — master (#75)
by Alexander
03:54
created

AfterRender   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

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
    public function __construct(string $file, array $parameters, string $result)
15
    {
16
        $this->result = $result;
17
        parent::__construct($file, $parameters);
18
    }
19
20
    public function getResult(): string
21
    {
22
        return $this->result;
23
    }
24
}
25