<?php

declare(strict_types=1);

namespace Gls\GlsPoland\PrestaShop\Checkout;

use Gls\GlsPoland\Entity\Carrier;
use Symfony\Component\Validator\ConstraintViolationInterface;
use Symfony\Component\Validator\ConstraintViolationListInterface;

interface DeliveryOptionValidatorInterface
{
    /**
     * @return ConstraintViolationListInterface|iterable<ConstraintViolationInterface>
     */
    public function validate(Carrier $carrier, $data): ConstraintViolationListInterface;
}
