instances added god may help
This commit is contained in:
27
lib/Service/Directory/DirectorySettingsGateway.php
Normal file
27
lib/Service/Directory/DirectorySettingsGateway.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace MintyPHP\Service\Directory;
|
||||
|
||||
use MintyPHP\Service\Settings\SettingGateway;
|
||||
|
||||
class DirectorySettingsGateway
|
||||
{
|
||||
public function __construct(private readonly SettingGateway $settingGateway)
|
||||
{
|
||||
}
|
||||
|
||||
public function setDefaultTenantId(?int $tenantId): void
|
||||
{
|
||||
$this->settingGateway->setDefaultTenantId($tenantId);
|
||||
}
|
||||
|
||||
public function setDefaultDepartmentId(?int $departmentId): void
|
||||
{
|
||||
$this->settingGateway->setDefaultDepartmentId($departmentId);
|
||||
}
|
||||
|
||||
public function setDefaultRoleId(?int $roleId): void
|
||||
{
|
||||
$this->settingGateway->setDefaultRoleId($roleId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user