Repo Interface für tests
This commit is contained in:
@@ -3,9 +3,13 @@
|
||||
namespace MintyPHP\Service\Settings;
|
||||
|
||||
use MintyPHP\Repository\Access\RoleRepository;
|
||||
use MintyPHP\Repository\Access\RoleRepositoryInterface;
|
||||
use MintyPHP\Repository\Org\DepartmentRepository;
|
||||
use MintyPHP\Repository\Org\DepartmentRepositoryInterface;
|
||||
use MintyPHP\Repository\Settings\SettingRepository;
|
||||
use MintyPHP\Repository\Settings\SettingRepositoryInterface;
|
||||
use MintyPHP\Repository\Tenant\TenantRepository;
|
||||
use MintyPHP\Repository\Tenant\TenantRepositoryInterface;
|
||||
|
||||
class SettingRepositoryFactory
|
||||
{
|
||||
@@ -14,22 +18,22 @@ class SettingRepositoryFactory
|
||||
private ?RoleRepository $roleRepository = null;
|
||||
private ?DepartmentRepository $departmentRepository = null;
|
||||
|
||||
public function createSettingRepository(): SettingRepository
|
||||
public function createSettingRepository(): SettingRepositoryInterface
|
||||
{
|
||||
return $this->settingRepository ??= new SettingRepository();
|
||||
}
|
||||
|
||||
public function createTenantRepository(): TenantRepository
|
||||
public function createTenantRepository(): TenantRepositoryInterface
|
||||
{
|
||||
return $this->tenantRepository ??= new TenantRepository();
|
||||
}
|
||||
|
||||
public function createRoleRepository(): RoleRepository
|
||||
public function createRoleRepository(): RoleRepositoryInterface
|
||||
{
|
||||
return $this->roleRepository ??= new RoleRepository();
|
||||
}
|
||||
|
||||
public function createDepartmentRepository(): DepartmentRepository
|
||||
public function createDepartmentRepository(): DepartmentRepositoryInterface
|
||||
{
|
||||
return $this->departmentRepository ??= new DepartmentRepository();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user