Files
breadcrumb-the-shire/lib/Service/Directory/DirectorySettingsGateway.php
fs 48cb7c9e08 fix: resolve QG-001 typography token drift and QG-006 style violations
Replace raw line-height values with --leading-none/--leading-loose
design tokens in 3 CSS files. Fix 7 PHP style issues: import ordering,
unused imports, brace placement, multi-line argument formatting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 22:56:36 +01:00

36 lines
951 B
PHP

<?php
namespace MintyPHP\Service\Directory;
use MintyPHP\Service\Settings\SettingsAppGateway;
use MintyPHP\Service\Settings\SettingsDefaultsGateway;
class DirectorySettingsGateway
{
public function __construct(
private readonly SettingsDefaultsGateway $settingsDefaultsGateway,
private readonly SettingsAppGateway $settingsAppGateway
) {
}
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);
}
public function isAllowedTheme(string $theme): bool
{
return $this->settingsAppGateway->isAllowedTheme($theme);
}
}