SMS message
The BulkGate\Sdk\Message\Sms class represents the object of the SMS message, which consists of the content of the message and the recipient.
Recipient
The class accepts as the first argument a phone number that can be entered by a string:
or accepts an instance of the object BulkGate\Sdk\Message\Component\PhoneNumber:
To obtain a phone number, you can use the print-out the class object BulkGate\Sdk\Message\Component\PhoneNumber, which always returns a phone number as a string.
You can also set phone number and ISO separately
Text of the message
The second parameter is the input of the text of the message. There are also 2 options where the first is to enter text using a string, and the other is an instance of the class SimpleText, or null.
Of course, you can define text even after creating an instance of an object using the method text(string $text, array $variables = [])
Settings
You can accesss public variable settings to configure sender_id and Unicode
Thank you for your feedback.