You are here

public function SmsMessageResult::addReport in SMS Framework 2.1.x

Same name in this branch
  1. 2.1.x src/Message/SmsMessageResult.php \Drupal\sms\Message\SmsMessageResult::addReport()
  2. 2.1.x src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::addReport()
Same name and namespace in other branches
  1. 8 src/Message/SmsMessageResult.php \Drupal\sms\Message\SmsMessageResult::addReport()
  2. 2.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\Message

Code

public function addReport(SmsDeliveryReportInterface $report) {
  $this->reports[] = $report;
  return $this;
}