to = $to; return $this; } /** * Set the data of the sms message. * * @param array $data * @return $this */ public function data(array $data) { $this->data = $data; return $this; } /** * Set the params of the sms message when we use ultraFastSend method * * @param array $params * @return $this */ public function params(array $params) { foreach ($parameters as $key => $value) { $this->params[] = ['Parameter' => $key, 'ParameterValue' => $value]; } return $this; } /** * Set the template_id of the sms message when we use ultraFastSend method * * @param string $template_id * @return $this */ public function templateId(string $template_id) { $this->template_id = $template_id; return $this; } /** * Set verification_code of sms message when we use sendVerification method * * @param string $verification_code * @return $this */ public function verificationCode(string $verification_code) { $this->verification_code = $verification_code; return $this; } }