<?php

namespace Soft_Tehnica\Freya_Sync_Service\Data;

class Tax
{
    public string $name;
    public float $cost;
    /** @var array<PromoFee> $promoFees */
    public array $promoFees;
    public float $minimumFee;

    /**
     * @param string $name
     * @param float $cost
     * @param PromoFee[] $promoFees
     * @param float $minimumFee
     */
    public function __construct(string $name, float $cost, array $promoFees, float $minimumFee)
    {
        $this->name = $name;
        $this->cost = $cost;
        $this->promoFees = $promoFees;
        $this->minimumFee = $minimumFee;
    }
}