You are here

ParserInterface.php in Google Search Appliance 8

File

src/Service/ParserInterface.php
View source
<?php

namespace Drupal\google_appliance\Service;


/**
 * Defines an interface for parsing GSA responses.
 */
interface ParserInterface {

  /**
   * Parses response from GSA.
   *
   * @param string $xml
   *   Response body.
   * @param bool $useCached
   *   FALSE to re-parse and bypass static-cache.
   *
   * @return \Drupal\google_appliance\SearchResults\ResultSet
   *   Search response.
   */
  public function parseResponse($xml, $useCached = TRUE);

}

Interfaces

Namesort descending Description
ParserInterface Defines an interface for parsing GSA responses.