<?php

declare(strict_types=1);

namespace App\Enum;

enum ContractNature: string
{
    case CDI     = 'CDI';
    case CDD     = 'CDD';
    case INTERIM = 'INTERIM';

    public function requiresEndDate(): bool
    {
        return self::CDD === $this || self::INTERIM === $this;
    }
}
