mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
32 lines
653 B
PHP
32 lines
653 B
PHP
<?php
|
|
|
|
namespace Nominatim\Token;
|
|
|
|
/**
|
|
* A standard word token.
|
|
*/
|
|
class Partial
|
|
{
|
|
/// Database word id, if applicable.
|
|
public $iId;
|
|
/// Number of appearances in the database.
|
|
public $iSearchNameCount;
|
|
|
|
public function __construct($iId, $iSearchNameCount)
|
|
{
|
|
$this->iId = $iId;
|
|
$this->iSearchNameCount = $iSearchNameCount;
|
|
}
|
|
|
|
public function debugInfo()
|
|
{
|
|
return array(
|
|
'ID' => $this->iId,
|
|
'Type' => 'partial',
|
|
'Info' => array(
|
|
'count' => $this->iSearchNameCount
|
|
)
|
|
);
|
|
}
|
|
}
|