23 lines
643 B
PHP
23 lines
643 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Domain\Ports\Services;
|
||
|
|
|
||
|
|
use Carbon\CarbonImmutable;
|
||
|
|
use Domain\Models\ValueObjects\EmployeeUpsertData;
|
||
|
|
|
||
|
|
interface EmployeeImportStorageService
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @param list<EmployeeUpsertData> $upsertData
|
||
|
|
*/
|
||
|
|
public function upsertEmployees(array $upsertData): void;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param \Domain\Models\ValueObjects\Matricule[] $matriculesToInsert
|
||
|
|
* @return object{insertedCount: int, updatedCount: int, matriculesInserted: \Domain\Models\ValueObjects\Matricule[]}
|
||
|
|
*/
|
||
|
|
public function getImportedAfter(array $matriculesToInsert, CarbonImmutable $importStartTime): object;
|
||
|
|
}
|