<?php

namespace SearchApi\Models;

/**
 * Class SearchTerm - A search term is a basic unit that will be used to build a query for
 * Search providers.
 */
class SearchTerm {
  public $value;          // (string)     This will be a keyword from NerTagger, location from ReverseGeocoder, etc.
  public $category;       // (string)     Category as string: 'location', 'person', 'organization', etc.
  public $related;        // (string[])   Array of related keywords
  public $count;          // (int)        Occurences of keyword
  public $isUserInput;    // (bool)       TRUE if term is a user-specified keyword, FALSE if it is not

  function __construct( $value, $category, $related, $count, $isUserInput ) {
    $this->value = $value;
    $this->category = $category;
    $this->related = $related;
    $this->count = $count;
    $this->isUserInput = $isUserInput;
  }
}

<?php

namespace SearchApi\Models;

/**
 * Class SearchTerm - A search term is a basic unit that will be used to build a query for
 * Search providers.
 *
 * @var $value       string      This will be a keyword from NerTagger, location from ReverseGeocoder, etc.
 * @var $category    string      'location', 'person', 'organization', etc.
 * @var $related     string[]    Array of related keywords
 * @var $count       int         Occurences of keyword
 * @var $isUserInput bool        TRUE if term is a user-specified keyword, FALSE if it is not
 */
class SearchTerm {
  public $value;
  public $category;
  public $related;
  public $count;
  public $isUserInput;

  function __construct( $value, $category, $related, $count, $isUserInput ) {
    $this->value = $value;
    $this->category = $category;
    $this->related = $related;
    $this->count = $count;
    $this->isUserInput = $isUserInput;
  }
}

Add phpdoc-style comments to SearchTerm
Add phpdoc-style comments to SearchTerm
