if (200 !==
$statusCode || '0' !==
(string) $content->statuscode
) { $error =
(string) $content->statusmessage ?:
$content->errormessage ?: 'unknown error';
throw new TransportException(sprintf('Unable to send the SMS: "%s".',
$error),
$response);
} return new SentMessage($message,
(string) $this);
} protected function getEndpoint(): string
{ $endpoint =
$this->host ?:
$this->
getDefaultHost();
if ($this->
getDefaultHost() ===
$endpoint && null ===
$this->port
) { $endpoint .= ':9507';
} elseif (null !==
$this->port
) { $endpoint .= ':'.
$this->port;
} return $endpoint;
}}