Nominatim/lib-php/TokenHousenumber.php

30 lines
538 B
PHP
Raw Normal View History

<?php
namespace Nominatim\Token;
/**
* A house number token.
*/
class HouseNumber
{
2018-05-15 00:23:38 +03:00
/// Database word id, if available.
public $iId;
2018-05-15 00:23:38 +03:00
/// 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)
);
}
}