]> git.openstreetmap.org Git - nominatim.git/blob - lib-php/TokenHousenumber.php
Added --no-replace command for special phrases importation and added corresponding...
[nominatim.git] / lib-php / TokenHousenumber.php
1 <?php
2
3 namespace Nominatim\Token;
4
5 /**
6  * A house number token.
7  */
8 class HouseNumber
9 {
10     /// Database word id, if available.
11     public $iId;
12     /// Normalized house number.
13     public $sToken;
14
15     public function __construct($iId, $sToken)
16     {
17         $this->iId = $iId;
18         $this->sToken = $sToken;
19     }
20
21     public function debugInfo()
22     {
23         return array(
24                 'ID' => $this->iId,
25                 'Type' => 'house number',
26                 'Info' => array('nr' => $this->sToken)
27                );
28     }
29 }