<?php

declare(strict_types=1);

namespace App\Modules\Tenants\Services;

use App\Modules\Tenants\Models\TenantUser;

class TenantMembershipService
{
    public function forUser(string $tenantId, string $userId): TenantUser
    {
        return new TenantUser(
            tenantId: $tenantId,
            userId: $userId,
            status: 'active',
            roles: ['tenant_admin']
        );
    }

    /**
     * @return array<int, string>
     */
    public function specialRoles(): array
    {
        return [
            'finance_admin',
            'support_contact',
            'survey_manager',
        ];
    }

    /**
     * @return array<int, string>
     */
    public function delegableRoles(): array
    {
        return $this->specialRoles();
    }
}
