You are here

public function SmsDeliveryReport::setMessageId in SMS Framework 2.x

Same name in this branch
  1. 2.x src/Message/SmsDeliveryReport.php \Drupal\sms\Message\SmsDeliveryReport::setMessageId()
  2. 2.x src/Entity/SmsDeliveryReport.php \Drupal\sms\Entity\SmsDeliveryReport::setMessageId()
Same name and namespace in other branches
  1. 8 src/Message/SmsDeliveryReport.php \Drupal\sms\Message\SmsDeliveryReport::setMessageId()
  2. 2.1.x src/Message/SmsDeliveryReport.php \Drupal\sms\Message\SmsDeliveryReport::setMessageId()

Sets the gateway tracking ID for the message.

Parameters

string|null $message_id: The gateway tracking ID for the message, or NULL if there is no tracking ID.

Return value

$this Returns this report object for chaining.

Overrides SmsDeliveryReportInterface::setMessageId

File

src/Message/SmsDeliveryReport.php, line 74

Class

SmsDeliveryReport
A value object that holds the SMS delivery report.

Namespace

Drupal\sms\Message

Code

public function setMessageId($message_id) {
  $this->messageId = $message_id;
  return $this;
}