芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/craftsys/msg91-php/src/Support/Service.php
options; } /** * Get the http client * @return \GuzzleHttp\Client */ protected function getHttpClient() { return $this->client->getHttpClient() ?: new HttpClient(); } /** * Set the receipient(s) * @param int|null $mobile * @return $this */ public function to($mobile = null) { $this->getOptions()->to($mobile); return $this; } /** * Set the sender * @param int|null $sender_id * @return $this */ public function from($sender_id = null) { $this->getOptions()->from($sender_id); return $this; } /** * Set the content of message * @param string|null $message * @return $this */ public function message($message = '') { $this->getOptions()->message($message); return $this; } /** * Pass any other options to the message * @param mixed $options * @return $this; */ public function options($options = null) { $this->getOptions()->mergeWith($options); return $this; } /** * Create a new instance of given request * @param string $request - Request class name * @return \Craftsys\Msg91\Response */ protected function sendRequest(string $request) { return (new $request($this->getHttpClient(), $this->getOptions()))->handle(); } }