18 lines
288 B
PHP
18 lines
288 B
PHP
<?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;
|
|
}
|
|
}
|