PHP Class Elastica\ResultSet\ProcessingBuilder

Inheritance: implements Elastica\ResultSet\BuilderInterface
Mostrar archivo Open project: ruflin/elastica

Public Methods

Method Description
__construct ( Elastica\ResultSet\BuilderInterface $builder, Elastica\ResultSet\ProcessorInterface $processor )
buildResultSet ( Response $response, Query $query ) : ResultSet Runs any registered transformers on the ResultSet before returning it, allowing the transformers to inject additional data into each Result.

Method Details

__construct() public method

public __construct ( Elastica\ResultSet\BuilderInterface $builder, Elastica\ResultSet\ProcessorInterface $processor )
$builder Elastica\ResultSet\BuilderInterface
$processor Elastica\ResultSet\ProcessorInterface

buildResultSet() public method

Runs any registered transformers on the ResultSet before returning it, allowing the transformers to inject additional data into each Result.
public buildResultSet ( Response $response, Query $query ) : ResultSet
$response Elastica\Response
$query Elastica\Query
return Elastica\ResultSet