schema; } /** * @param string $schema */ public function setSchema(string $schema): void { $this->schema = $schema; } /** * @return string */ public function getSerialNo(): string { return $this->serial_no; } /** * @param string $serial_no */ public function setSerialNo(string $serial_no): void { $this->serial_no = $serial_no; } /** * @param string $proxyHost */ public function setProxyHost(string $proxyHost): void { $this->proxyHost = $proxyHost; } /** * @param int $proxyPort */ public function setProxyPort(int $proxyPort): void { $this->proxyPort = $proxyPort; } /** * @return string */ public function getProxyHost(): string { return $this->proxyHost; } /** * @return int */ public function getProxyPort(): int { return $this->proxyPort; } /** * @return string */ public function getAppid(): string { return $this->appid; } /** * @param string $appid */ public function setAppid(string $appid): void { $this->appid = $appid; } /** * @return string */ public function getMchId(): string { return $this->mch_id; } /** * @param string $mch_id */ public function setMchId(string $mch_id): void { $this->mch_id = $mch_id; } /** * @return string */ public function getDeviceInfo(): string { return $this->device_info; } /** * @param string $device_info */ public function setDeviceInfo(string $device_info): void { $this->device_info = $device_info; } /** * @return string */ public function getToken(): string { return $this->token; } /** * @param string $token */ public function setToken(string $token): void { $this->token = $token; } /** * @return string */ public function getEncodingAesKey(): string { return $this->encodingAesKey; } /** * @param string $encodingAesKey */ public function setEncodingAesKey(string $encodingAesKey): void { $this->encodingAesKey = $encodingAesKey; } /** * @return string */ public function getNonceStr(): string { return $this->nonce_str; } /** * @param string $nonce_str */ public function setNonceStr(string $nonce_str): void { $this->nonce_str = $nonce_str; } /** * @return string */ public function getBody(): string { return $this->body; } /** * @param string $body */ public function setBody(string $body): void { $this->body = $body; } /** * @return string */ public function getOutTradeNo(): string { return $this->out_trade_no; } /** * @param string $out_trade_no */ public function setOutTradeNo(string $out_trade_no): void { $this->out_trade_no = $out_trade_no; } /** * @return int */ public function getTotalFee(): int|string { return $this->total_fee; } /** * @param int $total_fee */ public function setTotalFee(int|string $total_fee): void { $this->total_fee = $total_fee; } /** * @return string */ public function getSpbillCreateIp(): string { return $this->spbill_create_ip; } /** * @param string $spbill_create_ip */ public function setSpbillCreateIp(string $spbill_create_ip): void { $this->spbill_create_ip = $spbill_create_ip; } /** * @return string */ public function getNotifyUrl(): string { return $this->notify_url; } /** * @param string $notify_url */ public function setNotifyUrl(string $notify_url): void { $this->notify_url = $notify_url; } /** * @return string */ public function getTradeType(): string { return $this->trade_type; } /** * @param string $trade_type */ public function setTradeType(string $trade_type): void { $this->trade_type = $trade_type; } /** * @return string */ public function getSignType(): string { return $this->sign_type; } /** * @param string $sign_type */ public function setSignType(string $sign_type): void { $this->sign_type = $sign_type; } /** * @return string */ public function getMchHost(): string { return $this->mch_host; } /** * @param string $mch_host */ public function setMchHost(string $mch_host): void { $this->mch_host = $mch_host; } /** * @return string */ public function getAppsecret(): string { return $this->appsecret; } /** * @param string $appsecret */ public function setAppsecret(string $appsecret): void { $this->appsecret = $appsecret; } /** * @return string */ public function getRemoteAddr(): string { return $this->remote_addr; } /** * @param string $remote_addr */ public function setRemoteAddr(string $remote_addr): void { $this->remote_addr = $remote_addr; } /** * @return string */ public function getSslCert(): string { return $this->ssl_cert; } /** * @param string $ssl_cert */ public function setSslCert(string $ssl_cert): void { $this->ssl_cert = $ssl_cert; } /** * @return string */ public function getSslKey(): string { return $this->ssl_key; } /** * @param string $ssl_key */ public function setSslKey(string $ssl_key): void { $this->ssl_key = $ssl_key; } /** * @return string */ public function getSslCa(): string { return $this->ssl_ca; } /** * @param string $ssl_ca */ public function setSslCa(string $ssl_ca): void { $this->ssl_ca = $ssl_ca; } /** * @return string */ public function getPort(): string { return $this->port; } /** * @param string $port */ public function setPort(string $port): void { $this->port = $port; } /** * @return string */ public function getKey(): string { return $this->key; } /** * @param string $key */ public function setKey(string $key): void { $this->key = $key; } /** * @return string */ public function getAccessToken(): string { return $this->access_token; } /** * @param string $access_token */ public function setAccessToken(string $access_token): void { $this->access_token = $access_token; } /** * @return string */ public function getAgent(): string { return $this->agent; } /** * @param string $agent */ public function setAgent(string $agent): void { $this->agent = $agent; } /** * @return bool */ public function isUsrSwoole(): bool { return $this->usrSwoole; } /** * @param bool $usrSwoole */ public function setUsrSwoole(bool $usrSwoole): void { $this->usrSwoole = $usrSwoole; } /** * @param array $configs */ public function __construct(array $configs) { $this->setConfigs($configs); } /** * @param array $configs * @return $this */ protected function setConfigs(array $configs): static { if (empty($configs)) { return $this; } foreach ($configs as $key => $val) { if (empty($val) || is_array($val)) { continue; } if (!property_exists($this, $key)) { continue; } $this->$key = $val; } return $this; } }