You are here

public function SmsProcessingResponse::setMessages in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/SmsProcessingResponse.php \Drupal\sms\SmsProcessingResponse::setMessages()
  2. 2.1.x src/SmsProcessingResponse.php \Drupal\sms\SmsProcessingResponse::setMessages()

Set an array of messages to process.

Parameters

\Drupal\sms\Message\SmsMessageInterface[] $messages: An array of messages to process.

Return value

$this Return this object for chaining.

File

src/SmsProcessingResponse.php, line 43

Class

SmsProcessingResponse
Defines a container for SMS objects for processing and a request response.

Namespace

Drupal\sms

Code

public function setMessages(array $messages) {
  $this->messages = $messages;
  return $this;
}