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\SearchResultsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KeyMatch:: |
protected | property | Description. | |
KeyMatch:: |
protected | property | URL. | |
KeyMatch:: |
public | function | Gets value of description. | |
KeyMatch:: |
public | function | Gets value of url. | |
KeyMatch:: |
public | function | Constructs a new KeyMatch object. |