You are here

public function ResultSet::addResult in Google Search Appliance 8

Adds a result.

Parameters

\Drupal\google_appliance\SearchResults\Result $result: Result.

Return value

$this

File

src/SearchResults/ResultSet.php, line 188

Class

ResultSet
Defines a value object for a search response.

Namespace

Drupal\google_appliance\SearchResults

Code

public function addResult(Result $result) {
  $this->results[] = $result;
  return $this;
}