%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/graphicd/www/vebto/vendor/algolia/algoliasearch-client-php/src/Iterators/
Upload File :
Create Path :
Current File : /home/graphicd/www/vebto/vendor/algolia/algoliasearch-client-php/src/Iterators/RuleIterator.php

<?php

namespace Algolia\AlgoliaSearch\Iterators;

use Algolia\AlgoliaSearch\Support\Helpers;

final class RuleIterator extends AbstractAlgoliaIterator
{
    protected function formatHit(array $hit)
    {
        unset($hit['_highlightResult']);

        return $hit;
    }

    protected function fetchNextPage()
    {
        if (is_array($this->response) && $this->key >= $this->response['nbHits']) {
            return;
        }

        $this->response = $this->api->read(
            'POST',
            Helpers::apiPath('/1/indexes/%s/rules/search', $this->indexName),
            array_merge(
                $this->requestOptions,
                ['page' => $this->page]
            )
        );

        $this->batchKey = 0;
        $this->page++;
    }
}

Zerion Mini Shell 1.0