You are here

public function Synonym::__construct in Google Search Appliance 8

Constructs a new Synonym object.

Parameters

string $description: Synonym description.

string $url: Synonym URL.

File

src/SearchResults/Synonym.php, line 36

Class

Synonym
Defines a value object for a synonym.

Namespace

Drupal\google_appliance\SearchResults

Code

public function __construct($description, $url) {
  $this->description = $description;
  $this->url = $url;
}