| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 34 | public function generate(): string | ||
| 35 |     { | ||
| 36 |         if (!$this->generator instanceof GeneratorInterface) { | ||
| 37 |             throw new \Exception('No PDF generator set'); | ||
| 38 | } | ||
| 39 | |||
| 40 | $experiments = $this->experimentRepository->findAll(); | ||
| 41 |         $html = $this->environment->render('@Parthenon/abtesting/report.html.twig', ['experiments' => $experiments]); | ||
| 42 | |||
| 43 | return $this->generator->generate($html); | ||
| 44 | } | ||
| 46 |