diff --git a/src/Resources/SMS/Models/Message.php b/src/Resources/SMS/Models/Message.php index 6771cce..cab71e6 100644 --- a/src/Resources/SMS/Models/Message.php +++ b/src/Resources/SMS/Models/Message.php @@ -21,6 +21,9 @@ final class Message implements ModelInterface, ModelValidationInterface /** @var DestinationCollection */ private $destinations; + /** @var string|null */ + private $text; + /** @var Binary|null */ private $binary; @@ -65,6 +68,13 @@ public function __construct() $this->destinations = new DestinationCollection(); } + public function setText(?string $text): self + { + $this->text = $text; + + return $this; + } + public function setBinary(?Binary $binary): self { $this->binary = $binary; @@ -173,6 +183,7 @@ public function setValidityPeriod(?int $validityPeriod): self public function toArray(): array { return array_filter_recursive([ + 'text' => $this->text, 'binary' => $this->binary, 'callbackData' => $this->callbackData, 'deliveryTimeWindow' => $this->deliveryTimeWindow,