settingRepository ??= new SettingRepository(); } public function createTenantRepository(): TenantRepositoryInterface { return $this->tenantRepository ??= new TenantRepository(); } public function createRoleRepository(): RoleRepositoryInterface { return $this->roleRepository ??= new RoleRepository(); } public function createDepartmentRepository(): DepartmentRepositoryInterface { return $this->departmentRepository ??= new DepartmentRepository(); } }