| Total Complexity | 10 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class ReporterManager |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var ReporterInterface[] |
||
| 23 | */ |
||
| 24 | protected $reporters = []; |
||
| 25 | |||
| 26 | |||
| 27 | 3 | public function addReporter(string $alias, ReporterInterface $reporter, ?string $scope = null) |
|
| 34 | 3 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @return ReporterInterface |
||
| 38 | */ |
||
| 39 | 1 | public function getReporter(string $alias, ?string $scope = null): ?ReporterInterface |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return string[] |
||
| 50 | */ |
||
| 51 | 2 | public function getReporterAliases(?string $scope = null): array |
|
| 60 |