_propDict)) { return $this->_propDict["fields"]; } else { return null; } } /** * Sets the fields * Defines the collapse group to trim results. The properties in this collection must be sortable/refinable properties. Required. * * @param string $val The value of the fields * * @return CollapseProperty */ public function setFields($val) { $this->_propDict["fields"] = $val; return $this; } /** * Gets the limit * Defines a maximum limit count for this field. This numeric value must be a positive integer. Required. * * @return int|null The limit */ public function getLimit() { if (array_key_exists("limit", $this->_propDict)) { return $this->_propDict["limit"]; } else { return null; } } /** * Sets the limit * Defines a maximum limit count for this field. This numeric value must be a positive integer. Required. * * @param int $val The value of the limit * * @return CollapseProperty */ public function setLimit($val) { $this->_propDict["limit"] = $val; return $this; } }