1 | <?php |
||
21 | final class TemplateBlockRenderingHistory |
||
22 | { |
||
23 | /** @psalm-var list<array{name: string, start: float, stop: float, time: float, blocks: list<array{definition: TemplateBlock, start: float, stop: float, time: float}>}> */ |
||
24 | private $renderedEvents = []; |
||
25 | |||
26 | /** @psalm-var array{name: string, start: float, stop?: float, time?: float, blocks: list<array{definition: TemplateBlock, start: float, stop: float, time: float}>} */ |
||
27 | private $currentlyRenderedEvent = []; |
||
28 | |||
29 | /** @psalm-var array{definition: TemplateBlock, start: float, stop?: float, time?: float} */ |
||
30 | private $currentlyRenderedBlock = []; |
||
31 | |||
32 | public function startRenderingEvent(string $eventName, array $context): void |
||
36 | |||
37 | public function startRenderingBlock(string $eventName, TemplateBlock $templateBlock, array $context): void |
||
41 | |||
42 | public function stopRenderingBlock(string $eventName, TemplateBlock $templateBlock, array $context): void |
||
49 | |||
50 | public function stopRenderingEvent(string $eventName, array $context): void |
||
57 | |||
58 | public function getRenderedEvents(): array |
||
62 | |||
63 | public function reset(): void |
||
67 | } |
||
68 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.