mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-23 13:44:36 +03:00
30 lines
553 B
PHP
30 lines
553 B
PHP
<?php
|
|
|
|
namespace Nominatim\Token;
|
|
|
|
/**
|
|
* A country token.
|
|
*/
|
|
class Country
|
|
{
|
|
/// Database word id, if available.
|
|
public $iId;
|
|
/// Two-letter country code (lower-cased).
|
|
public $sCountryCode;
|
|
|
|
public function __construct($iId, $sCountryCode)
|
|
{
|
|
$this->iId = $iId;
|
|
$this->sCountryCode = $sCountryCode;
|
|
}
|
|
|
|
public function debugInfo()
|
|
{
|
|
return array(
|
|
'ID' => $this->iId,
|
|
'Type' => 'country',
|
|
'Info' => $this->sCountryCode
|
|
);
|
|
}
|
|
}
|