You are here

public function SmsDeliveryReport::getTimeQueued in SMS Framework 8

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

Gets the time the message was queued.

Return value

int|null The timestamp when the message was queued, or NULL if unknown.

Overrides SmsDeliveryReportInterface::getTimeQueued

File

src/Entity/SmsDeliveryReport.php, line 121

Class

SmsDeliveryReport
Defines the SMS message delivery report entity.

Namespace

Drupal\sms\Entity

Code

public function getTimeQueued() {
  $queued = $this
    ->getRevisionAtStatus(SmsMessageReportStatus::QUEUED);
  return $queued ? $queued
    ->getStatusTime() : NULL;
}