<?php

declare(strict_types=1);

namespace Akeneo\Catalogs\Application\Persistence\Attribute;

/**
 * @copyright 2022 Akeneo SAS (http://www.akeneo.com)
 * @license   http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */
interface SearchAttributeOptionsQueryInterface
{
    /**
     * @return array<array{code: string, label: string}>
     */
    public function execute(
        string $attribute,
        string $locale = 'en_US',
        ?string $search = null,
        int $page = 1,
        int $limit = 20
    ): array;
}
