X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f29c7bf910ea36fdc2cc70ba63c6dcece79c7b6c..0f87da017f83b321770044e52d7034894448dee6:/lib/TokenWord.php diff --git a/lib/TokenWord.php b/lib/TokenWord.php index 92940c10..fc28535d 100644 --- a/lib/TokenWord.php +++ b/lib/TokenWord.php @@ -7,17 +7,21 @@ namespace Nominatim\Token; */ class Word { + /// Database word id, if applicable. 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; - // Number of appearances in the database. + /// Number of appearances in the database. 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->iTermCount = $iTermCount; } public function debugInfo()