You are here

public function SmsDeliveryReportEvent::setReports in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 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 74

Class

SmsDeliveryReportEvent
Handle a received delivery report.

Namespace

Drupal\sms\Event

Code

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