You are here

public function SmsMessage::setMessage in SMS Framework 2.x

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

Set the message to be sent.

Parameters

string $message: The message to be sent.

Return value

$this The called SMS message object.

Overrides SmsMessageInterface::setMessage

1 call to SmsMessage::setMessage()
SmsMessage::__construct in src/Message/SmsMessage.php
Creates a new instance of an SMS message.

File

src/Message/SmsMessage.php, line 158

Class

SmsMessage
Basic implementation of an SMS message.

Namespace

Drupal\sms\Message

Code

public function setMessage($message) {
  $this->message = $message;
  return $this;
}