| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function getStatistics(): array |
||
| 30 | { |
||
| 31 | $statistics = []; |
||
| 32 | foreach ($this->statistics as $statistic) { |
||
| 33 | Assert::implementsInterface($statistic, StatisticInterface::class, sprintf('Class %s must implement %s', get_class($statistic), StatisticInterface::class)); |
||
| 34 | $statistics[] = $statistic->generate(); |
||
| 35 | } |
||
| 36 | |||
| 37 | return $statistics; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |