feat(contracts) : add EmployeeContractPhaseResolver service
This commit is contained in:
25
src/Dto/Contracts/ContractPhase.php
Normal file
25
src/Dto/Contracts/ContractPhase.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Dto\Contracts;
|
||||
|
||||
use App\Enum\ContractType;
|
||||
use DateTimeImmutable;
|
||||
|
||||
final readonly class ContractPhase
|
||||
{
|
||||
/**
|
||||
* @param list<int> $periodIds
|
||||
*/
|
||||
public function __construct(
|
||||
public int $id,
|
||||
public ContractType $contractType,
|
||||
public ?int $weeklyHours,
|
||||
public bool $isDriver,
|
||||
public DateTimeImmutable $startDate,
|
||||
public ?DateTimeImmutable $endDate,
|
||||
public array $periodIds,
|
||||
public bool $isCurrent,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user