| Total Complexity | 7 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class CharFrameCollectionRenderer implements ICharFrameCollectionRenderer |
||
| 18 | { |
||
| 19 | public function __construct( |
||
| 20 | protected ICharFrameRenderer $frameRenderer, |
||
| 21 | ) { |
||
| 22 | } |
||
| 23 | |||
| 24 | public function render(IPattern $pattern): IFrameCollection |
||
| 25 | { |
||
| 26 | return new FrameCollection($this->generateFrames($pattern)); |
||
| 27 | } |
||
| 28 | |||
| 29 | private function generateFrames(IPattern $pattern): Traversable |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | private function createFrame(string $entry): IFrame |
||
| 49 | } |
||
| 50 | } |
||
| 51 |