ldc-arcadia-api/src/Application/Health/Dto/DatabaseCheckResult.php
Jérémy Munsch 62c221f6b6
feat(health): add oracle probe and normalize health checks
Refactor health check DTOs around a common CheckResult contract and remove the\nlegacy HealthChecks aggregate object.\n\nAdd a dedicated /api/v1/health/oracle endpoint with response mapping, OpenAPI\nschema updates, and Bruno request coverage.\n\nAlign feature, unit, integration, architecture and OpenAPI tests with the new\nset-based checks representation and make Oracle health tests deterministic in CI.\n\nUpdate command documentation to the uwil:* command namespace.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-06 14:51:46 +02:00

27 lines
522 B
PHP

<?php
declare(strict_types=1);
namespace Application\Health\Dto;
use Application\Health\Enums\ComponentStatus;
final readonly class DatabaseCheckResult implements CheckResult
{
public function __construct(
public ComponentStatus $status,
public string $connection,
public ?string $message = null,
) {
}
public function getName(): string
{
return $this->connection;
}
public function getStatus(): ComponentStatus
{
return $this->status;
}
}