| Total Complexity | 9 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class ReporterManager |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var ReporterInterface[] |
||
| 23 | */ |
||
| 24 | protected $reporters = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param ?string $name |
||
| 28 | */ |
||
| 29 | 99 | public function addReporter(string $name, ReporterInterface $reporter, string $scope = null) |
|
| 36 | 99 | } |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param ?string $scope |
||
| 40 | * |
||
| 41 | * @return ?ReporterInterface |
||
| 42 | */ |
||
| 43 | 61 | public function getReporter(string $name, string $scope = null) |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param ?string $scope |
||
| 54 | * |
||
| 55 | * @return string[] |
||
| 56 | */ |
||
| 57 | 2 | public function getReporterAliases(string $scope = null): array |
|
| 66 |