| 1 | <?php |
||
| 9 | class HealthContributorRegistry |
||
| 10 | { |
||
| 11 | private $contributors = []; |
||
| 12 | |||
| 13 | 8 | public function register(string $name, HealthContributor $class): void |
|
| 17 | |||
| 18 | /** |
||
| 19 | * @return Collection |
||
| 20 | */ |
||
| 21 | 8 | public function getAll(): Collection |
|
| 25 | |||
| 26 | 2 | public function findByName(string $name): ?HealthContributor |
|
| 34 | } |
||
| 35 |