original_string: public function setResponseFormat($format)
      {
          $format = strtolower($format);
          if (!in_array($format, array('php', 'json', 'jsonp'))) {
              throw new Exception("Expected a format of php, json or jsonp, got '$format'");
          } else {
              $this->responseFormat = $format;
          }
      }
code: public function setResponseFormat($format)
      {
          $format = strtolower($format);
          if (!in_array($format, array('php', 'json', 'jsonp'))) {
              throw new Exception("Expected a format of php, json or jsonp, got '$format'");
          } else {
              $this->responseFormat = $format;
          }
      }
code_tokens: public function setResponseFormat ( $ format ) { $ format = strtolower ( $ format ) ; if ( ! in_array ( $ format , array ( 'php' , 'json' , 'jsonp' ) ) ) { throw new Exception ( "Expected a format of php, json or jsonp, got '$format'" ) ; } else { $ this -> responseFormat = $ format ; } }
docstring: Set the API response format
  @param string $format One of php, json or jsonp
  @return void
docstring_tokens: Set the API response format