_propDict)) { return $this->_propDict["from"]; } else { return null; } } /** * Sets the from * Defines the lower bound from which to compute the aggregation. This can be a numeric value or a string representation of a date using the YYYY-MM-DDTHH:mm:ss.sssZ format. Required. * * @param string $val The value of the from * * @return BucketAggregationRange */ public function setFrom($val) { $this->_propDict["from"] = $val; return $this; } /** * Gets the to * Defines the upper bound up to which to compute the aggregation. This can be a numeric value or a string representation of a date using the YYYY-MM-DDTHH:mm:ss.sssZ format. Required. * * @return string|null The to */ public function getTo() { if (array_key_exists("to", $this->_propDict)) { return $this->_propDict["to"]; } else { return null; } } /** * Sets the to * Defines the upper bound up to which to compute the aggregation. This can be a numeric value or a string representation of a date using the YYYY-MM-DDTHH:mm:ss.sssZ format. Required. * * @param string $val The value of the to * * @return BucketAggregationRange */ public function setTo($val) { $this->_propDict["to"] = $val; return $this; } }