public function SmsDeliveryReport::getTimeQueued in SMS Framework 2.x
Same name in this branch
- 2.x src/Message/SmsDeliveryReport.php \Drupal\sms\Message\SmsDeliveryReport::getTimeQueued()
- 2.x src/Entity/SmsDeliveryReport.php \Drupal\sms\Entity\SmsDeliveryReport::getTimeQueued()
Same name and namespace in other branches
- 8 src/Entity/SmsDeliveryReport.php \Drupal\sms\Entity\SmsDeliveryReport::getTimeQueued()
- 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 123
Class
- SmsDeliveryReport
- Defines the SMS message delivery report entity.
Namespace
Drupal\sms\EntityCode
public function getTimeQueued() {
$queued = $this
->getRevisionAtStatus(SmsMessageReportStatus::QUEUED);
return $queued ? $queued
->getStatusTime() : NULL;
}