3 namespace Nominatim\Token;
5 require_once(CONST_BasePath.'/lib/SpecialSearchOperator.php');
8 * A word token describing a place type.
12 /// Database word id, if applicable.
14 /// Class (or OSM tag key) of the place to look for.
16 /// Type (or OSM tag value) of the place to look for.
18 /// Relationship of the operator to the object (see Operator class).
21 public function __construct($iID, $sClass, $sType, $iOperator)
24 $this->sClass = $sClass;
25 $this->sType = $sType;
26 $this->iOperator = $iOperator;
29 public function debugInfo()
33 'Type' => 'special term',
35 'class' => $this->sClass,
36 'type' => $this->sType,
37 'operator' => Operator::toString($this->iOperator)