* @license http://github.com/basdenooijer/solarium/raw/master/COPYING * @link http://www.solarium-project.org/ * * @package Solarium * @subpackage Client */ /** * Parse update response data * * @package Solarium * @subpackage Client */ class Solarium_Client_ResponseParser_Update extends Solarium_Client_ResponseParser { /** * Parse response data * * @param Solarium_Result_Update $result * @return array */ public function parse($result) { $data = $result->getData(); $status = null; $queryTime = null; if (isset($data['responseHeader'])) { $status = $data['responseHeader']['status']; $queryTime = $data['responseHeader']['QTime']; } return array( 'status' => $status, 'queryTime' => $queryTime, ); } }