mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 22:12:45 +03:00
30 lines
538 B
PHP
30 lines
538 B
PHP
<?php
|
|
|
|
namespace Nominatim\Token;
|
|
|
|
/**
|
|
* A house number token.
|
|
*/
|
|
class HouseNumber
|
|
{
|
|
/// Database word id, if available.
|
|
public $iId;
|
|
/// Normalized house number.
|
|
public $sToken;
|
|
|
|
public function __construct($iId, $sToken)
|
|
{
|
|
$this->iId = $iId;
|
|
$this->sToken = $sToken;
|
|
}
|
|
|
|
public function debugInfo()
|
|
{
|
|
return array(
|
|
'ID' => $this->iId,
|
|
'Type' => 'house number',
|
|
'Info' => array('nr' => $this->sToken)
|
|
);
|
|
}
|
|
}
|