mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-27 23:15:12 +03:00
38 lines
865 B
PHP
38 lines
865 B
PHP
|
<?php
|
||
|
|
||
|
namespace Nominatim\Token;
|
||
|
|
||
|
require_once(CONST_BasePath.'/lib/SpecialSearchOperator.php');
|
||
|
|
||
|
/**
|
||
|
* A word token describing a place type.
|
||
|
*/
|
||
|
class SpecialTerm
|
||
|
{
|
||
|
public $iId;
|
||
|
public $sClass;
|
||
|
public $sType;
|
||
|
public $iOperator;
|
||
|
|
||
|
public function __construct($iID, $sClass, $sType, $iOperator)
|
||
|
{
|
||
|
$this->iId = $iID;
|
||
|
$this->sClass = $sClass;
|
||
|
$this->sType = $sType;
|
||
|
$this->iOperator = $iOperator;
|
||
|
}
|
||
|
|
||
|
public function debugInfo()
|
||
|
{
|
||
|
return array(
|
||
|
'ID' => $this->iId,
|
||
|
'Type' => 'special term',
|
||
|
'Info' => array(
|
||
|
'class' => $this->sClass,
|
||
|
'type' => $this->sType,
|
||
|
'operator' => Operator::toString($this->iOperator)
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
}
|