Nominatim/lib/TokenCountry.php

30 lines
553 B
PHP
Raw Normal View History

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