You are here

public function SmsDeliveryReportEvent::setReports in SMS Framework 8

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

Set the delivery reports on this event.

Parameters

\Drupal\sms\Message\SmsDeliveryReportInterface[] $reports: The delivery reports to set on this event.

Return value

$this Returns this event for chaining.

File

src/Event/SmsDeliveryReportEvent.php, line 72

Class

SmsDeliveryReportEvent
Handle a received delivery report.

Namespace

Drupal\sms\Event

Code

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