Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class AfterRender implements AfterRenderEventInterface |
||
14 | { |
||
15 | private WebView $view; |
||
16 | |||
17 | /** |
||
18 | * @var string The view file being rendered. |
||
19 | */ |
||
20 | private string $file; |
||
21 | |||
22 | /** |
||
23 | * @var array The parameters array passed to the {@see View::render()} or {@see View::renderFile()} method. |
||
24 | */ |
||
25 | private array $parameters; |
||
26 | |||
27 | private string $result; |
||
28 | |||
29 | public function __construct(WebView $view, string $file, array $parameters, string $result) |
||
30 | { |
||
31 | $this->view = $view; |
||
32 | $this->file = $file; |
||
33 | $this->parameters = $parameters; |
||
34 | $this->result = $result; |
||
35 | } |
||
36 | |||
37 | public function getView(): WebView |
||
38 | { |
||
39 | return $this->view; |
||
40 | } |
||
41 | |||
42 | public function getFile(): string |
||
45 | } |
||
46 | |||
47 | public function getParameters(): array |
||
50 | } |
||
51 | |||
52 | public function getResult(): string |
||
57 |