_propDict)) { if (is_a($this->_propDict["aggregations"], "\Microsoft\Graph\Model\SearchAggregation") || is_null($this->_propDict["aggregations"])) { return $this->_propDict["aggregations"]; } else { $this->_propDict["aggregations"] = new SearchAggregation($this->_propDict["aggregations"]); return $this->_propDict["aggregations"]; } } return null; } /** * Sets the aggregations * * @param SearchAggregation $val The value to assign to the aggregations * * @return SearchHitsContainer The SearchHitsContainer */ public function setAggregations($val) { $this->_propDict["aggregations"] = $val; return $this; } /** * Gets the hits * A collection of the search results. * * @return SearchHit|null The hits */ public function getHits() { if (array_key_exists("hits", $this->_propDict)) { if (is_a($this->_propDict["hits"], "\Microsoft\Graph\Model\SearchHit") || is_null($this->_propDict["hits"])) { return $this->_propDict["hits"]; } else { $this->_propDict["hits"] = new SearchHit($this->_propDict["hits"]); return $this->_propDict["hits"]; } } return null; } /** * Sets the hits * A collection of the search results. * * @param SearchHit $val The value to assign to the hits * * @return SearchHitsContainer The SearchHitsContainer */ public function setHits($val) { $this->_propDict["hits"] = $val; return $this; } /** * Gets the moreResultsAvailable * Provides information if more results are available. Based on this information, you can adjust the from and size properties of the searchRequest accordingly. * * @return bool|null The moreResultsAvailable */ public function getMoreResultsAvailable() { if (array_key_exists("moreResultsAvailable", $this->_propDict)) { return $this->_propDict["moreResultsAvailable"]; } else { return null; } } /** * Sets the moreResultsAvailable * Provides information if more results are available. Based on this information, you can adjust the from and size properties of the searchRequest accordingly. * * @param bool $val The value of the moreResultsAvailable * * @return SearchHitsContainer */ public function setMoreResultsAvailable($val) { $this->_propDict["moreResultsAvailable"] = $val; return $this; } /** * Gets the total * The total number of results. Note this isn't the number of results on the page, but the total number of results satisfying the query. * * @return int|null The total */ public function getTotal() { if (array_key_exists("total", $this->_propDict)) { return $this->_propDict["total"]; } else { return null; } } /** * Sets the total * The total number of results. Note this isn't the number of results on the page, but the total number of results satisfying the query. * * @param int $val The value of the total * * @return SearchHitsContainer */ public function setTotal($val) { $this->_propDict["total"] = $val; return $this; } }