<?php

declare( strict_types=1 );

namespace Soft_Tehnica\Freya_Sync_Service\Data;

class ToppingListCategory
{

    public int $id;
    public string $name;
    public ?int $minOptions;
    public ?int $maxOptions;
    public ?int $orderFlag;
    /** @var ToppingListItem[] */
    public array $toppings;

    /**
     * @param ToppingListItem[] $toppings
     */
    public function __construct(
        int $id,
        string $name,
        ?int $minOptions,
        ?int $maxOptions,
        ?int $orderFlag,
        array $toppings
    ) {
        $this->id         = $id;
        $this->name       = $name;
        $this->minOptions = $minOptions;
        $this->maxOptions = $maxOptions;
        $this->orderFlag  = $orderFlag;
        $this->toppings   = $toppings;
    }
}
