芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/craftsys/msg91-php/src/Client.php
httpClient = $httpClient; $this->config = new Config($config); } /** * Return the configuration * @return \Craftsys\Msg91\Config */ public function getConfig() { return $this->config; } /** * Set the configuration * @param array|null $config * @return $this */ public function setConfig($config = null) { $this->config = new Config($config); return $this; } /** * Set the http client */ public function setHttpClient(GuzzleHttpClient $httpClient): self { $this->httpClient = $httpClient; return $this; } /** * Get the http client */ public function getHttpClient(): GuzzleHttpClient { return $this->httpClient ?: new GuzzleHttpClient(); } /** * Access to OPT services * * @param mixed $payload - initial payload for request */ public function otp($payload = null): OTPService { return new OTPService($this, $payload); } /** * Access to SMS services * * @param mixed $payload - initial payload for request */ public function sms($payload = null): SMSService { return new SMSService($this, $payload); } }