28 lines
558 B
PHP
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;
|
|
}
|