28 lines
637 B
PHP
28 lines
637 B
PHP
|
|
<?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);
|
||
|
|
}
|
||
|
|
}
|