Пример #1
0
 /**
  * Get/set the REST content type we're using
  *
  * @param String $type the content type to use (optional)
  * @return String the content type being used (e.g. "JSON")
  */
 public static function type($type = NULL)
 {
     return is_null($type) ? self::$type : (self::$type = $type);
 }