public function SmsMessageResult::setReports in SMS Framework 2.x
Same name in this branch
- 2.x src/Message/SmsMessageResult.php \Drupal\sms\Message\SmsMessageResult::setReports()
- 2.x src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::setReports()
Same name and namespace in other branches
- 8 src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::setReports()
- 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 105
Class
- SmsMessageResult
- Defines the SMS message result entity.
Namespace
Drupal\sms\EntityCode
public function setReports(array $reports) {
$this->reports = $reports;
return $this;
}