public function SmsMessageResult::addReport in SMS Framework 2.x
Same name in this branch
- 2.x src/Message/SmsMessageResult.php \Drupal\sms\Message\SmsMessageResult::addReport()
- 2.x src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::addReport()
Same name and namespace in other branches
- 8 src/Message/SmsMessageResult.php \Drupal\sms\Message\SmsMessageResult::addReport()
- 2.1.x src/Message/SmsMessageResult.php \Drupal\sms\Message\SmsMessageResult::addReport()
Adds a delivery report to the result.
Parameters
\Drupal\sms\Message\SmsDeliveryReportInterface $report: A delivery report.
Return value
$this Returns this result object for chaining.
Overrides SmsMessageResultInterface::addReport
File
- src/
Message/ SmsMessageResult.php, line 113
Class
- SmsMessageResult
- The result of an SMS messaging transaction.
Namespace
Drupal\sms\MessageCode
public function addReport(SmsDeliveryReportInterface $report) {
$this->reports[] = $report;
return $this;
}