Files
kupshop/bundles/KupShop/CatalogElasticBundle/Contracts/SectionResponseInterface.php
2025-08-02 16:30:27 +02:00

28 lines
558 B
PHP

<?php
declare(strict_types=1);
namespace KupShop\CatalogElasticBundle\Contracts;
use Elastica\Multi\ResultSet as MultiResultSet;
use Elastica\ResultSet;
interface SectionResponseInterface
{
public function isExecuted(): bool;
/**
* @return ResultSet with the products inside a given section
*/
public function getMainResult(): ResultSet;
public function getProductsCount(): int;
/**
* @return iterable<int>
*/
public function getProductIds(): iterable;
public function getResponse(): MultiResultSet;
}