* @license http://github.com/basdenooijer/solarium/raw/master/COPYING * @link http://www.solarium-project.org/ * * @package Solarium * @subpackage Client */ /** * Base class for handling Solr response data * * Most {@link Solarium_Client_Adapter} implementations will use HTTP for * communicating with Solr. While the HTTP part is adapter-specific, the parsing * of the response into Solarium_Result classes is not. This abstract class is * the base for several response handlers that do just that for the various * querytypes. * * @package Solarium * @subpackage Client */ abstract class Solarium_Client_ResponseParser { /** * Get a Solarium_Result instance for the given data * * When this method is called the actual response parsing is started. * * @internal Must be implemented in descendents because this parsing is * query specific. * * @abstract * * @param Solarium_Result $result * @return mixed */ abstract function parse($result); }