You are here

public function SearchApiSpellcheckSuggestion::__construct in Search API Spellcheck 7

Constructor.

Parameters

string $original: Word, phrase or sentance which could be improved.

string $suggestion: Suggested replacement for the $original.

1 method overrides SearchApiSpellcheckSuggestion::__construct()
SearchApiSpellcheckSuggestionLink::__construct in includes/SearchApiSpellcheckSuggestionLink.inc
Constructor.

File

includes/SearchApiSpellcheckSuggestion.inc, line 20
Suggestion class which contains both the original search key and the suggested replacement.

Class

SearchApiSpellcheckSuggestion
@file Suggestion class which contains both the original search key and the suggested replacement.

Code

public function __construct($original, $suggestion) {
  $this->original = $original;
  $this->suggestion = $suggestion;
}