instances added god may help
This commit is contained in:
42
lib/Service/User/UserSettingsGateway.php
Normal file
42
lib/Service/User/UserSettingsGateway.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace MintyPHP\Service\User;
|
||||
|
||||
use MintyPHP\Service\Settings\SettingGateway;
|
||||
|
||||
class UserSettingsGateway
|
||||
{
|
||||
public function __construct(private readonly SettingGateway $settingGateway)
|
||||
{
|
||||
}
|
||||
|
||||
public function getDefaultTenantId(): ?int
|
||||
{
|
||||
return $this->settingGateway->getDefaultTenantId();
|
||||
}
|
||||
|
||||
public function getDefaultRoleId(): ?int
|
||||
{
|
||||
return $this->settingGateway->getDefaultRoleId();
|
||||
}
|
||||
|
||||
public function getDefaultDepartmentId(): ?int
|
||||
{
|
||||
return $this->settingGateway->getDefaultDepartmentId();
|
||||
}
|
||||
|
||||
public function getAppTheme(): ?string
|
||||
{
|
||||
return $this->settingGateway->getAppTheme();
|
||||
}
|
||||
|
||||
public function getUserInactivityDeactivateDays(): int
|
||||
{
|
||||
return $this->settingGateway->getUserInactivityDeactivateDays();
|
||||
}
|
||||
|
||||
public function getUserInactivityDeleteDays(): int
|
||||
{
|
||||
return $this->settingGateway->getUserInactivityDeleteDays();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user