major update
This commit is contained in:
@@ -9,9 +9,9 @@ use MintyPHP\Service\Org\DepartmentService;
|
||||
class DepartmentImportGateway
|
||||
{
|
||||
public function __construct(
|
||||
private readonly ?DepartmentRepository $departmentRepository = null,
|
||||
private readonly ?TenantRepository $tenantRepository = null,
|
||||
private readonly ?DepartmentService $departmentService = null
|
||||
private readonly DepartmentRepository $departmentRepository,
|
||||
private readonly TenantRepository $tenantRepository,
|
||||
private readonly DepartmentService $departmentService
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -46,16 +46,16 @@ class DepartmentImportGateway
|
||||
|
||||
private function departmentRepository(): DepartmentRepository
|
||||
{
|
||||
return $this->departmentRepository ?? new DepartmentRepository();
|
||||
return $this->departmentRepository;
|
||||
}
|
||||
|
||||
private function tenantRepository(): TenantRepository
|
||||
{
|
||||
return $this->tenantRepository ?? new TenantRepository();
|
||||
return $this->tenantRepository;
|
||||
}
|
||||
|
||||
private function departmentService(): DepartmentService
|
||||
{
|
||||
return $this->departmentService ?? new DepartmentService();
|
||||
return $this->departmentService;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user