<?php

declare(strict_types=1);

namespace App\Modules\Members\Domain;

class Member
{
    public function __construct(
        private readonly string $id,
        private readonly string $tenantId,
        private readonly string $tenantUserId,
        private readonly string $displayName,
        private readonly string $email,
        private readonly bool $active = true
    ) {
    }

    public function id(): string
    {
        return $this->id;
    }

    public function tenantId(): string
    {
        return $this->tenantId;
    }

    public function tenantUserId(): string
    {
        return $this->tenantUserId;
    }

    public function displayName(): string
    {
        return $this->displayName;
    }

    public function email(): string
    {
        return $this->email;
    }

    public function isActive(): bool
    {
        return $this->active;
    }
}
