<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Kernel\Facades;

use PpPhp\Core\Platform\Compatibility\CompatibilityRegistry;
use PpPhp\Core\Platform\Kernel\Platform;

final class Compatibility
{
    public static function registry(): CompatibilityRegistry
    {
        return Platform::compatibility();
    }

    public static function adapters(): array
    {
        return self::registry()->all();
    }

    public static function notices(): array
    {
        return self::registry()->notices();
    }

    public static function has(string $id): bool
    {
        return self::registry()->has($id);
    }
}
