You are here

class KeyMatch in Google Search Appliance 8

Defines a value object for key-matches.

Hierarchy

  • class \Drupal\google_appliance\SearchResults\KeyMatch

Expanded class hierarchy of KeyMatch

1 file declares its use of KeyMatch
Parser.php in src/Service/Parser.php

File

src/SearchResults/KeyMatch.php, line 8

Namespace

Drupal\google_appliance\SearchResults
View source
class KeyMatch {

  /**
   * Description.
   *
   * @var string
   */
  protected $description;

  /**
   * URL.
   *
   * @var string
   */
  protected $url;

  /**
   * Constructs a new KeyMatch object.
   *
   * @param string $description
   *   Description.
   * @param string $url
   *   URL.
   */
  public function __construct($description, $url) {
    $this->description = $description;
    $this->url = $url;
  }

  /**
   * Gets value of description.
   *
   * @return string
   *   Value of description
   */
  public function getDescription() {
    return $this->description;
  }

  /**
   * Gets value of url.
   *
   * @return string
   *   Value of url
   */
  public function getUrl() {
    return $this->url;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
KeyMatch::$description protected property Description.
KeyMatch::$url protected property URL.
KeyMatch::getDescription public function Gets value of description.
KeyMatch::getUrl public function Gets value of url.
KeyMatch::__construct public function Constructs a new KeyMatch object.