<?php

declare(strict_types=1);

namespace App\Modules\Ledger\Domain;

class CoffeeEntry
{
    public function __construct(
        private readonly string $id,
        private readonly string $tenantId,
        private readonly string $memberId,
        private readonly int $strokes,
        private readonly float $unitPrice,
        private readonly string $bookedAt
    ) {
    }

    public function totalCost(): float
    {
        return $this->strokes * $this->unitPrice;
    }
}
