Files
device-management/app/Support/TenantContext.php
T
Wian Drs 1e80be180e
tests / ci (push) Has been cancelled
Initial commit device-management
2026-08-25 09:42:00 +07:00

24 lines
347 B
PHP

<?php
namespace App\Support;
final class TenantContext
{
private ?int $tenantId = null;
public function set(?int $tenantId): void
{
$this->tenantId = $tenantId;
}
public function id(): ?int
{
return $this->tenantId;
}
public function clear(): void
{
$this->tenantId = null;
}
}