_propDict)) { if (is_a($this->_propDict["buckets"], "\Microsoft\Graph\Model\SearchBucket") || is_null($this->_propDict["buckets"])) { return $this->_propDict["buckets"]; } else { $this->_propDict["buckets"] = new SearchBucket($this->_propDict["buckets"]); return $this->_propDict["buckets"]; } } return null; } /** * Sets the buckets * * @param SearchBucket $val The value to assign to the buckets * * @return SearchAggregation The SearchAggregation */ public function setBuckets($val) { $this->_propDict["buckets"] = $val; return $this; } /** * Gets the field * * @return string|null The field */ public function getField() { if (array_key_exists("field", $this->_propDict)) { return $this->_propDict["field"]; } else { return null; } } /** * Sets the field * * @param string $val The value of the field * * @return SearchAggregation */ public function setField($val) { $this->_propDict["field"] = $val; return $this; } }