accessToken = $accessToken; $this->timestamp = $timestamp; $this->signature = $signature; $this->version = $version; $this->nonce = $nonce; } /** * HttpHeader constructor. * @param $timestamp * @param $accessToken * @param $signature * @param $version */ public function __construct7($accessToken, $agentToken, $timestamp, $signature, $agentSignautre, $version, $nonce) { $this->accessToken = $accessToken; $this->agentToken = $agentToken; $this->timestamp = $timestamp; $this->signature = $signature; $this->agentSignautre = $agentSignautre; $this->version = $version; $this->nonce = $nonce; } public function getArray(){ $headers = array( 'x-qys-open-accesstoken:'.$this->accessToken, 'x-qys-open-signature:'.$this->signature, 'x-qys-open-timestamp:'.$this->timestamp, 'User-Agent:'.'qiyuesuo-php-sdk', 'version:'.SDKClient::SDK_VERSION, 'x-qys-open-nonce:'.$this->nonce ); return $headers; } public function getAgentArray(){ $headers = array( 'x-qys-open-accesstoken:'.$this->accessToken, 'x-qys-open-signature:'.$this->signature, 'x-qys-open-agentaccesstoken:'.$this->agentToken, 'x-qys-open-agentsignature:'.$this->agentSignautre, 'x-qys-open-timestamp:'.$this->timestamp, 'User-Agent:'.'qiyuesuo-php-sdk', 'version:'.SDKClient::SDK_VERSION, 'x-qys-open-nonce:'.$this->nonce ); return $headers; } /** * @return mixed */ public function getTimestamp() { return $this->timestamp; } /** * @return mixed */ public function getAccessToken() { return $this->accessToken; } /** * @return mixed */ public function getSignature() { return $this->signature; } /** * @return mixed */ public function getVersion() { return $this->version; } /** * @return mixed */ public function getNonce() { return $this->nonce; } }