<?php

namespace App\Domain\Workflow\Requirements\Checks;

use App\Domain\Applicants\Models\Applicant;
use App\Domain\Workflow\Requirements\StageRequirement;

class ProfileVerified implements StageRequirement
{
    public function type(): string
    {
        return 'profile_verified';
    }

    public function describe(array $params): string
    {
        return 'The applicant profile has been verified by staff.';
    }

    public function isSatisfiedBy(Applicant $applicant, array $params): bool
    {
        return $applicant->verified_at !== null;
    }
}
