agent foundation
This commit is contained in:
@@ -2,41 +2,46 @@
|
||||
|
||||
namespace MintyPHP\Service\User;
|
||||
|
||||
use MintyPHP\Service\Settings\SettingGateway;
|
||||
use MintyPHP\Service\Settings\SettingsAppGateway;
|
||||
use MintyPHP\Service\Settings\SettingsDefaultsGateway;
|
||||
use MintyPHP\Service\Settings\SettingsUserLifecycleGateway;
|
||||
|
||||
class UserSettingsGateway
|
||||
{
|
||||
public function __construct(private readonly SettingGateway $settingGateway)
|
||||
{
|
||||
public function __construct(
|
||||
private readonly SettingsDefaultsGateway $settingsDefaultsGateway,
|
||||
private readonly SettingsAppGateway $settingsAppGateway,
|
||||
private readonly SettingsUserLifecycleGateway $settingsUserLifecycleGateway
|
||||
) {
|
||||
}
|
||||
|
||||
public function getDefaultTenantId(): ?int
|
||||
{
|
||||
return $this->settingGateway->getDefaultTenantId();
|
||||
return $this->settingsDefaultsGateway->getDefaultTenantId();
|
||||
}
|
||||
|
||||
public function getDefaultRoleId(): ?int
|
||||
{
|
||||
return $this->settingGateway->getDefaultRoleId();
|
||||
return $this->settingsDefaultsGateway->getDefaultRoleId();
|
||||
}
|
||||
|
||||
public function getDefaultDepartmentId(): ?int
|
||||
{
|
||||
return $this->settingGateway->getDefaultDepartmentId();
|
||||
return $this->settingsDefaultsGateway->getDefaultDepartmentId();
|
||||
}
|
||||
|
||||
public function getAppTheme(): ?string
|
||||
{
|
||||
return $this->settingGateway->getAppTheme();
|
||||
return $this->settingsAppGateway->getAppTheme();
|
||||
}
|
||||
|
||||
public function getUserInactivityDeactivateDays(): int
|
||||
{
|
||||
return $this->settingGateway->getUserInactivityDeactivateDays();
|
||||
return $this->settingsUserLifecycleGateway->getUserInactivityDeactivateDays();
|
||||
}
|
||||
|
||||
public function getUserInactivityDeleteDays(): int
|
||||
{
|
||||
return $this->settingGateway->getUserInactivityDeleteDays();
|
||||
return $this->settingsUserLifecycleGateway->getUserInactivityDeleteDays();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user