<?php

declare(strict_types=1);

namespace External\PompoBundle\Ordering\Delivery;

use KupShop\OrderingBundle\Entity\Purchase\PurchaseState;

\Delivery::includeClass('OdberNaProdejne');

class OdberNaProdejne extends \OdberNaProdejne
{
    public bool $restrictionsEnabled = false;

    public function checkRestrictions(PurchaseState $purchaseState)
    {
        if ($this->restrictionsEnabled) {
            return parent::checkRestrictions($purchaseState);
        }

        return true;
    }
}
