protected function getInitializedSearchResultSet(SearchRequest $searchRequest):SearchResultSet
    {
        /** @var $resultSet SearchResultSet */
        $resultSetClass = $this->getResultSetClassName();
        $resultSet = GeneralUtility::makeInstance($resultSetClass);

        $resultSet->setUsedSearchRequest($searchRequest);
        $resultSet->setUsedPage((int)$searchRequest->getPage());
        $resultSet->setUsedResultsPerPage((int)$searchRequest->getResultsPerPage());
        $resultSet->setUsedSearch($this->search);
        return $resultSet;
    }
protected function getInitializedSearchResultSet(SearchRequest $searchRequest):SearchResultSet
    {
        /** @var $resultSet SearchResultSet */
        $resultSetClass = $this->getResultSetClassName();
        $resultSet = GeneralUtility::makeInstance($resultSetClass);

        $resultSet->setUsedSearchRequest($searchRequest);
        $resultSet->setUsedPage((int)$searchRequest->getPage());
        $resultSet->setUsedResultsPerPage((int)$searchRequest->getResultsPerPage());
        $resultSet->setUsedSearch($this->search);
        return $resultSet;
    }
protected function getInitializedSearchResultSet ( SearchRequest $ searchRequest ) : SearchResultSet { /** @var $resultSet SearchResultSet */ $ resultSetClass = $ this -> getResultSetClassName ( ) ; $ resultSet = GeneralUtility :: makeInstance ( $ resultSetClass ) ; $ resultSet -> setUsedSearchRequest ( $ searchRequest ) ; $ resultSet -> setUsedPage ( ( int ) $ searchRequest -> getPage ( ) ) ; $ resultSet -> setUsedResultsPerPage ( ( int ) $ searchRequest -> getResultsPerPage ( ) ) ; $ resultSet -> setUsedSearch ( $ this -> search ) ; return $ resultSet ; }
Initializes the SearchResultSet from the SearchRequest

@param SearchRequest $searchRequest
@return SearchResultSet
Initializes the SearchResultSet from the SearchRequest