Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
- Nouvelle entité InterimAgency (table interim_agencies, API lecture seule) - Sélecteur agence conditionnel dans les formulaires création employé et ajout contrat - Affichage "Intérim (NomAgence)" sur la liste employés et l'historique contrat - Date de fin obligatoire côté frontend pour CDD et INTERIM (aligné backend) - Renommage "Types d'absence" → "Types de statut" (sidebar, page, titre) - Renommage en-tête "Absence" → "Statut" sur les vues jour heures et conducteurs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
52 lines
1.3 KiB
PHP
52 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Service\Contracts;
|
|
|
|
use App\Entity\Contract;
|
|
use App\Entity\Employee;
|
|
use App\Entity\EmployeeContractPeriod;
|
|
use App\Enum\ContractNature;
|
|
use DateTimeImmutable;
|
|
|
|
interface EmployeeContractPeriodManagerInterface
|
|
{
|
|
/**
|
|
* @param null|array<int, int> $workDaysHours iso-day → minutes
|
|
*/
|
|
public function ensureContractPeriodExists(
|
|
Employee $employee,
|
|
Contract $contract,
|
|
DateTimeImmutable $startDate,
|
|
?DateTimeImmutable $endDate,
|
|
ContractNature $nature,
|
|
bool $isDriver = false,
|
|
?array $workDaysHours = null,
|
|
?int $interimAgencyId = null,
|
|
): void;
|
|
|
|
public function closeCurrentPeriod(
|
|
?EmployeeContractPeriod $todayPeriod,
|
|
DateTimeImmutable $requestedEndDate,
|
|
bool $paidLeaveSettled,
|
|
?string $comment = null,
|
|
bool $isAlreadyEnded = false
|
|
): void;
|
|
|
|
/**
|
|
* @param null|array<int, int> $workDaysHours iso-day → minutes
|
|
*/
|
|
public function createNextPeriod(
|
|
Employee $employee,
|
|
Contract $contract,
|
|
DateTimeImmutable $startDate,
|
|
?DateTimeImmutable $endDate,
|
|
ContractNature $nature,
|
|
?EmployeeContractPeriod $todayPeriod,
|
|
bool $isDriver = false,
|
|
?array $workDaysHours = null,
|
|
?int $interimAgencyId = null,
|
|
): void;
|
|
}
|