| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | final class BlockRenderingEventRecorder implements BlockRenderingEventRecorderInterface |
||
| 17 | { |
||
| 18 | /** @var array */ |
||
| 19 | private $recordedEvents = []; |
||
| 20 | |||
| 21 | public function recordRenderingBlock(BlockInterface $block): void |
||
| 22 | { |
||
| 23 | $this->recordedEvents[] = $block; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getRecordedEvents(): array |
||
| 27 | { |
||
| 28 | return $this->recordedEvents; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function reset(): void |
||
| 34 | } |
||
| 35 | } |
||
| 36 |