| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function generateBySection(SectionInterface $section): array |
||
| 33 | { |
||
| 34 | $writables = []; |
||
| 35 | |||
| 36 | /** @var GeneratorInterface $generator */ |
||
| 37 | foreach ($this->generators as $generator) { |
||
| 38 | try { |
||
| 39 | $writables[] = $generator->generateBySection($section); |
||
| 40 | } catch (\Exception $exception) { |
||
| 41 | $this->buildMessages[] = $exception->getMessage(); |
||
| 42 | } |
||
| 43 | $this->buildMessages = array_merge($this->buildMessages, $generator->getBuildMessages()); |
||
| 44 | } |
||
| 45 | |||
| 46 | return $writables; |
||
| 47 | } |
||
| 54 |