forked from fa/breadcrumb-the-shire
28 lines
691 B
PHP
28 lines
691 B
PHP
<?php
|
|
|
|
namespace MintyPHP\Service\Directory;
|
|
|
|
use MintyPHP\Service\Settings\SettingsDefaultsGateway;
|
|
|
|
class DirectorySettingsGateway
|
|
{
|
|
public function __construct(private readonly SettingsDefaultsGateway $settingsDefaultsGateway)
|
|
{
|
|
}
|
|
|
|
public function setDefaultTenantId(?int $tenantId): void
|
|
{
|
|
$this->settingsDefaultsGateway->setDefaultTenantId($tenantId);
|
|
}
|
|
|
|
public function setDefaultDepartmentId(?int $departmentId): void
|
|
{
|
|
$this->settingsDefaultsGateway->setDefaultDepartmentId($departmentId);
|
|
}
|
|
|
|
public function setDefaultRoleId(?int $roleId): void
|
|
{
|
|
$this->settingsDefaultsGateway->setDefaultRoleId($roleId);
|
|
}
|
|
}
|