Skip to content

Commit

Permalink
add missing text property
Browse files Browse the repository at this point in the history
  • Loading branch information
onyijne committed Oct 16, 2024
1 parent fd82b1b commit 4229258
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Resources/SMS/Models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ final class Message implements ModelInterface, ModelValidationInterface
/** @var DestinationCollection */
private $destinations;

/** @var string|null */
private $text;

/** @var Binary|null */
private $binary;

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4229258

Please sign in to comment.