* @license http://github.com/basdenooijer/solarium/raw/master/COPYING * @link http://www.solarium-project.org/ * * @package Solarium * @subpackage Client */ /** * Parse select component Highlighting result from the data * * @package Solarium * @subpackage Client */ class Solarium_Client_ResponseParser_Select_Component_Highlighting { /** * Parse result data into result objects * * @param Solarium_Query_Select $query * @param Solarium_Query_Select_Component_Highlighting $highlighting * @param array $data * @return Solarium_Result_Select_Highlighting */ public function parse($query, $highlighting, $data) { $results = array(); if (isset($data['highlighting'])) { $highlightResults = $data['highlighting']; foreach ($highlightResults AS $key => $result) { $results[$key] = new Solarium_Result_Select_Highlighting_Result( $result ); } } return new Solarium_Result_Select_Highlighting($results); } }