Files
breadcrumb-the-shire/lib/Service/Auth/AuthTenantGateway.php
2026-03-05 08:26:51 +01:00

28 lines
576 B
PHP

<?php
namespace MintyPHP\Service\Auth;
use MintyPHP\Repository\Tenant\TenantRepositoryInterface;
class AuthTenantGateway
{
public function __construct(private readonly TenantRepositoryInterface $tenantRepository)
{
}
public function findById(int $tenantId): ?array
{
return $this->tenantRepository->find($tenantId);
}
public function findByUuid(string $uuid): ?array
{
return $this->tenantRepository->findByUuid($uuid);
}
public function list(): array
{
return $this->tenantRepository->list();
}
}