<?php

namespace App\Domain\Document;

final class DocumentSettings
{
    public const REQUIRE_DOCUMENTS_UPLOAD = 'require_documents_upload';
    public const REQUIRE_MEDICAL_CERTIFICATE = 'require_medical_certificate';
    public const MEDICAL_CERTIFICATE_EXPIRY_REQUIRED = 'medical_certificate_expiry_required';
    public const MEDICAL_CERTIFICATE_MAX_AGE_MONTHS = 'medical_certificate_max_age_months';
    public const BLOCK_ATTENDANCE_WITHOUT_MEDICAL = 'block_attendance_without_medical';
    public const ALLOWED_DOCUMENT_TYPES = 'allowed_document_types';
    public const MAX_DOCUMENT_SIZE_MB = 'max_document_size_mb';

    public const GROUP = 'enrollment';

    public const DEFAULTS = [
        self::REQUIRE_DOCUMENTS_UPLOAD => '0',
        self::REQUIRE_MEDICAL_CERTIFICATE => '0',
        self::MEDICAL_CERTIFICATE_EXPIRY_REQUIRED => '1',
        self::MEDICAL_CERTIFICATE_MAX_AGE_MONTHS => '12',
        self::BLOCK_ATTENDANCE_WITHOUT_MEDICAL => '0',
        self::ALLOWED_DOCUMENT_TYPES => '["birth_certificate","national_id","medical_certificate","passport","photo","contract","qualification","insurance","other"]',
        self::MAX_DOCUMENT_SIZE_MB => '10',
    ];
}
