<?php

declare(strict_types=1);

namespace App\Modules\Ledger\Domain;

class LedgerEntry
{
    public function __construct(
        private readonly string $id,
        private readonly string $tenantId,
        private readonly string $memberId,
        private readonly string $entryType,
        private readonly float $amount,
        private readonly string $bookedAt,
        private readonly string $referenceType,
        private readonly ?string $referenceId = null
    ) {
    }

    public function amount(): float
    {
        return $this->amount;
    }

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