You are here

public function SmsMessage::setResult in SMS Framework 8

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

Set the result associated with this SMS message.

Parameters

\Drupal\sms\Message\SmsMessageResultInterface|null $result: The result to associate with this SMS message, or NULL if there is no result.

Return value

$this The called SMS message object.

Overrides SmsMessageInterface::setResult

File

src/Message/SmsMessage.php, line 277

Class

SmsMessage
Basic implementation of an SMS message.

Namespace

Drupal\sms\Message

Code

public function setResult(SmsMessageResultInterface $result = NULL) {
  $this->result = $result;
  return $this;
}