Repo Interface für tests

This commit is contained in:
2026-03-05 08:26:51 +01:00
parent 8f4dd5840d
commit 4b31fc7664
171 changed files with 3518 additions and 2297 deletions

View File

@@ -2,15 +2,15 @@
namespace MintyPHP\Service\Import\Profile;
use MintyPHP\Repository\Org\DepartmentRepository;
use MintyPHP\Repository\Tenant\TenantRepository;
use MintyPHP\Repository\Org\DepartmentRepositoryInterface;
use MintyPHP\Repository\Tenant\TenantRepositoryInterface;
use MintyPHP\Service\Org\DepartmentService;
class DepartmentImportGateway
{
public function __construct(
private readonly DepartmentRepository $departmentRepository,
private readonly TenantRepository $tenantRepository,
private readonly DepartmentRepositoryInterface $departmentRepository,
private readonly TenantRepositoryInterface $tenantRepository,
private readonly DepartmentService $departmentService
) {
}
@@ -44,12 +44,12 @@ class DepartmentImportGateway
return $this->departmentService()->createFromAdmin($input, $currentUserId);
}
private function departmentRepository(): DepartmentRepository
private function departmentRepository(): DepartmentRepositoryInterface
{
return $this->departmentRepository;
}
private function tenantRepository(): TenantRepository
private function tenantRepository(): TenantRepositoryInterface
{
return $this->tenantRepository;
}