]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/TokenWord.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / lib / TokenWord.php
index 92940c104a07d06fc4274bdf4cd5390640688a30..fc28535d4582e459f5d88c72b8977efaf1930fa9 100644 (file)
@@ -7,17 +7,21 @@ namespace Nominatim\Token;
  */
 class Word
 {
  */
 class Word
 {
+    /// Database word id, if applicable.
     public $iId;
     public $iId;
-    // If true, the word may represent only part of a place name.
+    /// If true, the word may represent only part of a place name.
     public $bPartial;
     public $bPartial;
-    // Number of appearances in the database.
+    /// Number of appearances in the database.
     public $iSearchNameCount;
     public $iSearchNameCount;
+    /// Number of terms in the word.
+    public $iTermCount;
 
 
-    public function __construct($iId, $bPartial, $iSearchNameCount)
+    public function __construct($iId, $bPartial, $iSearchNameCount, $iTermCount)
     {
         $this->iId = $iId;
         $this->bPartial = $bPartial;
         $this->iSearchNameCount = $iSearchNameCount;
     {
         $this->iId = $iId;
         $this->bPartial = $bPartial;
         $this->iSearchNameCount = $iSearchNameCount;
+        $this->iTermCount = $iTermCount;
     }
 
     public function debugInfo()
     }
 
     public function debugInfo()