| Total Complexity | 5 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 13 | final class AfterRender implements AfterRenderEventInterface |
||
| 14 | { |
||
| 15 | private View $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 | 6 | public function __construct(View $view, string $file, array $parameters, string $result) |
|
| 30 | { |
||
| 31 | 6 | $this->view = $view; |
|
| 32 | 6 | $this->file = $file; |
|
| 33 | 6 | $this->parameters = $parameters; |
|
| 34 | 6 | $this->result = $result; |
|
| 35 | 6 | } |
|
| 36 | |||
| 37 | 1 | public function getView(): View |
|
| 38 | { |
||
| 39 | 1 | return $this->view; |
|
| 40 | } |
||
| 41 | |||
| 42 | 1 | public function getFile(): string |
|
| 45 | } |
||
| 46 | |||
| 47 | 1 | public function getParameters(): array |
|
| 50 | } |
||
| 51 | |||
| 52 | 6 | public function getResult(): string |
|
| 55 | } |
||
| 56 | } |
||
| 57 |