type = $type; $this->index_field = $index_field; } public function getType() { return FieldMapping::TYPE_DATE; } public function getIndexField(QueryContext $context, $raw = false) { return $this->index_field; } public function isValueCompatible($value, QueryContext $context) { return ValueChecker::isValueCompatible($this, $value); } public function __toString() { return $this->type; } }