| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 42.86% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | abstract class ViewEvent |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string the view file being rendered. |
||
| 14 | */ |
||
| 15 | private string $file; |
||
| 16 | /** |
||
| 17 | * @var array the parameter array passed to the {@see View::render()} method. |
||
| 18 | */ |
||
| 19 | private array $parameters; |
||
| 20 | |||
| 21 | 8 | public function __construct(string $file, array $parameters = []) |
|
| 22 | { |
||
| 23 | 8 | $this->file = $file; |
|
| 24 | 8 | $this->parameters = $parameters; |
|
| 25 | } |
||
| 26 | |||
| 27 | public function file(): string |
||
| 30 | } |
||
| 31 | |||
| 32 | public function parameters(): array |
||
| 37 |