public function SmsMessage::setResult in SMS Framework 8
Same name in this branch
- 8 src/Message/SmsMessage.php \Drupal\sms\Message\SmsMessage::setResult()
- 8 src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setResult()
Same name and namespace in other branches
- 2.x src/Message/SmsMessage.php \Drupal\sms\Message\SmsMessage::setResult()
- 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\MessageCode
public function setResult(SmsMessageResultInterface $result = NULL) {
$this->result = $result;
return $this;
}