/** * Set a content option for detecting the media type to be used. To unset pass null as a value * For any options that don't required a value, set them to true to activate them * @param integer $option * @param string $value * @throws DrestException */ public function setDetectContentOption($option, $value) { if (array_key_exists($option, self::$detectContentOptions)) { $this->_attributes['detectContentOptions'][$option] = $value; } else { throw DrestException::unknownDetectContentOption(); } }