protected function extractValueObjects(SearchResult $searchResult)
    {
        return array_map(
            function (SearchHit $searchHit) {
                return $searchHit->valueObject;
            },
            $searchResult->searchHits
        );
    }
protected function extractValueObjects(SearchResult $searchResult)
    {
        return array_map(
            function (SearchHit $searchHit) {
                return $searchHit->valueObject;
            },
            $searchResult->searchHits
        );
    }
protected function extractValueObjects ( SearchResult $ searchResult ) { return array_map ( function ( SearchHit $ searchHit ) { return $ searchHit -> valueObject ; } , $ searchResult -> searchHits ) ; }
Extracts value objects from SearchResult.

@param \eZ\Publish\API\Repository\Values\Content\Search\SearchResult $searchResult

@return \eZ\Publish\API\Repository\Values\ValueObject[]
Extracts value objects from SearchResult .