<?php

namespace App\Services\Certification;

final class CertificationRegistry
{
    public static function modules(): array
    {
        return [
'workflow' => [

    'label' => 'Workflow',

    'service' => WorkflowCertification::class,

    'method' => 'certify',

    'enabled' => true

],
'platform' => [

    'label' => 'Platform',

    'service' => PlatformCertification::class,

    'method' => 'certify',

    'enabled' => true

]

        ];
    }

    public static function enabled(): array
    {
        return array_filter(
            self::modules(),
            static fn ($m) => !empty($m['enabled'])
        );
    }
}
