<?php

declare(strict_types=1);

namespace MauticPlugin\DealFlowBundle\Compat;

/*
 * Compatibility shim for GlobalSearchInterface.
 *
 * Mautic 7.x introduced GlobalSearchInterface in CoreBundle.
 * On 5.x/6.x where it doesn't exist, this resolves to an empty
 * interface so DealModel can still implement it without fatal errors.
 */
if (interface_exists(\Mautic\CoreBundle\Model\GlobalSearchInterface::class)) {
    interface GlobalSearchCompat extends \Mautic\CoreBundle\Model\GlobalSearchInterface
    {
    }
} else {
    interface GlobalSearchCompat
    {
    }
}
