<?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();
    }
}
