introduce classes for token list and token types

This commit is contained in:
Sarah Hoffmann
2018-05-14 23:04:15 +02:00
parent 2cc4c73b64
commit f29c7bf910
11 changed files with 436 additions and 154 deletions

27
lib/TokenHousenumber.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
namespace Nominatim\Token;
/**
* A house number token.
*/
class HouseNumber
{
public $iId;
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)
);
}
}