type = $type; $this->key = $key; } public function getIndexField(QueryContext $context, $raw = false) { return $this->key; } public function isValueCompatible($value, QueryContext $context) { return true; } public function __toString() { return $this->type; } }