Files
Nominatim/lib-php/TokenPartial.php
Sarah Hoffmann 6070c3d1d5 introduce a separate token type for partials
This means that the leading space can be removed as a partial
word indicator.
2021-07-13 16:57:12 +02:00

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
)
);
}
}