api = $api; $this->content = $content; $this->web = $web; } /** * Returns the host name of the main Dropbox API server. * The default is "api.dropbox.com". * * @return string */ public function getApi() { return $this->api; } /** * Returns the host name of the Dropbox API content server. * The default is "api-content.dropbox.com". * * @return string */ public function getContent() { return $this->content; } /** * Returns the host name of the Dropbox web server. Used during user authorization. * The default is "www.dropbox.com". * * @return string */ public function getWeb() { return $this->web; } /** * Check that a function argument is of type Host. * * @internal */ public static function checkArg($argName, $argValue) { if (!($argValue instanceof self)) { Dropbox_Checker::throwError($argName, $argValue, __CLASS__); } } /** * Check that a function argument is either null or of type * Host. * * @internal */ public static function checkArgOrNull($argName, $argValue) { if ($argValue === null) { return; } if (!($argValue instanceof self)) { Dropbox_Checker::throwError($argName, $argValue, __CLASS__); } } }