You are here

SearchApiSpellcheckSuggestion.inc in Search API Spellcheck 7

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

File

includes/SearchApiSpellcheckSuggestion.inc
View source
<?php

/**
 * @file
 * Suggestion class which contains both the original search key and the
 * suggested replacement.
 */
class SearchApiSpellcheckSuggestion {
  public $original;
  public $suggestion;

  /**
   * Constructor.
   *
   * @param string $original
   *   Word, phrase or sentance which could be improved.
   *
   * @param string $suggestion
   *   Suggested replacement for the $original.
   */
  public function __construct($original, $suggestion) {
    $this->original = $original;
    $this->suggestion = $suggestion;
  }

}

Classes

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