You are here

public function SmsMessageResult::setReports in SMS Framework 8

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

Sets the delivery reports for all recipients.

Parameters

\Drupal\sms\Message\SmsDeliveryReportInterface[] $reports: An array of delivery reports.

Return value

$this Returns this result object for chaining.

Overrides SmsMessageResultInterface::setReports

File

src/Entity/SmsMessageResult.php, line 103

Class

SmsMessageResult
Defines the SMS message result entity.

Namespace

Drupal\sms\Entity

Code

public function setReports(array $reports) {
  $this->reports = $reports;
  return $this;
}