You are here

public function SmsDeliveryReport::getStatus in SMS Framework 8

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

Gets the status of the message.

Return value

string|null A status code from \Drupal\sms\Message\SmsMessageReportStatus, or NULL if unknown.

Overrides SmsDeliveryReportInterface::getStatus

File

src/Entity/SmsDeliveryReport.php, line 76

Class

SmsDeliveryReport
Defines the SMS message delivery report entity.

Namespace

Drupal\sms\Entity

Code

public function getStatus() {
  return $this
    ->get('status')->value;
}