<?php

namespace Soft_Tehnica\Freya_Sync_Service\Data;

class Tax
{

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

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