initial commit

This commit is contained in:
2026-02-11 23:37:50 +01:00
commit 908cf42ad9
128 changed files with 17831 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace App\Services\Query;
use App\Data\ContactImport;
use App\Data\Intent\ProcessImport\SearchImportContactsIntent;
use App\Services\Mapper\ContactImportMapper;
use App\Services\Storage\ProcessImportStorageProvider;
class ImportContactsStateQuery
{
public function __construct(
private readonly ContactImportMapper $contactImportMapper,
private readonly ProcessImportStorageProvider $processImportStorageProvider,
) {
}
public function executeOne(SearchImportContactsIntent $search): ?ContactImport
{
$modelResult = $this->processImportStorageProvider->fetchByUuid($search->uuid);
if ($modelResult === null) {
return null;
}
return $this->contactImportMapper->fromModel($modelResult);
}
}