<?php
declare(strict_types=1);
namespace App\Platform\Health;

final class HealthRegistry
{
    /** @var list<HealthCheckInterface> */
    private array $checks = [];

    public function register(HealthCheckInterface $check): self
    {
        $this->checks[] = $check;
        return $this;
    }

    /** @return list<HealthCheckInterface> */
    public function all(): array { return $this->checks; }
}
