Drest\DrestException::unknownExposeRequestOption PHP Method

unknownExposeRequestOption() public static method

public static unknownExposeRequestOption ( )
    public static function unknownExposeRequestOption()
    {
        return new self('Unknown expose request option used. ' . 'Please see EXPOSE_REQUEST_* options in Drest\\Configuration');
    }

Usage Example

Example #1
0
 /**
  * Method used to retrieve the required expose contents from the client. To unset pass null as value
  * @param  integer        $option
  * @param  string         $value
  * @throws DrestException
  */
 public function setExposeRequestOption($option, $value)
 {
     if (array_key_exists($option, self::$exposeRequestOptions)) {
         $this->_attributes['exposeRequestOptions'][$option] = $value;
     } else {
         throw DrestException::unknownExposeRequestOption();
     }
 }