You are here

public function SmsMessage::getReport in SMS Framework 8

Same name in this branch
  1. 8 src/Message/SmsMessage.php \Drupal\sms\Message\SmsMessage::getReport()
  2. 8 src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::getReport()
Same name and namespace in other branches
  1. 2.x src/Message/SmsMessage.php \Drupal\sms\Message\SmsMessage::getReport()
  2. 2.1.x src/Message/SmsMessage.php \Drupal\sms\Message\SmsMessage::getReport()

Gets the delivery report for a particular recipient.

Parameters

string $recipient: The number of the recipient for which the report is to be retrieved.

Return value

\Drupal\sms\Message\SmsDeliveryReportInterface|null A delivery report object, or NULL if there is no report for the recipient.

Overrides SmsMessageInterface::getReport

See also

SmsMessageInterface::getReports()

File

src/Message/SmsMessage.php, line 354

Class

SmsMessage
Basic implementation of an SMS message.

Namespace

Drupal\sms\Message

Code

public function getReport($recipient) {
  return $this->result ? $this->result
    ->getReport($recipient) : NULL;
}