Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class BlockRenderingHistory implements BlockRenderingHistoryInterface |
||
17 | { |
||
18 | /** @var array */ |
||
19 | private $currentlyRendered = []; |
||
20 | |||
21 | public function startRenderingBlock(BlockInterface $block): void |
||
22 | { |
||
23 | $this->currentlyRendered[] = $block; |
||
24 | } |
||
25 | |||
26 | public function getRenderedHistory(): array |
||
29 | } |
||
30 | |||
31 | public function reset(): void |
||
36 |