Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
13 | class BeforeRender implements StoppableEventInterface |
||
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 WebView::render()} or {@see WebView::renderFile()} method. |
||
24 | */ |
||
25 | private array $parameters; |
||
26 | |||
27 | private bool $stopPropagation = false; |
||
28 | |||
29 | 46 | public function __construct(WebView $view, string $file, array $parameters) |
|
34 | 46 | } |
|
35 | |||
36 | 1 | public function stopPropagation(): void |
|
37 | { |
||
38 | 1 | $this->stopPropagation = true; |
|
39 | 1 | } |
|
40 | |||
41 | 46 | public function isPropagationStopped(): bool |
|
44 | } |
||
45 | |||
46 | 1 | public function getView(): WebView |
|
47 | { |
||
48 | 1 | return $this->view; |
|
49 | } |
||
50 | |||
51 | 1 | public function getFile(): string |
|
52 | { |
||
53 | 1 | return $this->file; |
|
54 | } |
||
55 | |||
56 | 1 | public function getParameters(): array |
|
59 | } |
||
60 | } |
||
61 |