/** * Constructor. * * @param string $key * {@link getKey()} * @param string $secret * {@link getSecret()} */ public function __construct($key, $secret) { Dropbox_AppInfo::checkKeyArg($key); Dropbox_AppInfo::checkSecretArg($secret); $this->key = $key; $this->secret = $secret; }
/** * Constructor. * * @param Dropbox_AppInfo $appInfo * See {@link getAppInfo()} * @param string $clientIdentifier * See {@link getClientIdentifier()} * @param null|string $userLocale * See {@link getUserLocale()} */ public function __construct($appInfo, $clientIdentifier, $userLocale = null) { Dropbox_AppInfo::checkArg("appInfo", $appInfo); Dropbox_Client::checkClientIdentifierArg("clientIdentifier", $clientIdentifier); Dropbox_Checker::argStringNonEmptyOrNull("userLocale", $userLocale); $this->appInfo = $appInfo; $this->clientIdentifier = $clientIdentifier; $this->userLocale = $userLocale; }