public function SmsDeliveryReport::setTimeQueued in SMS Framework 2.x
Same name in this branch
- 2.x src/Message/SmsDeliveryReport.php \Drupal\sms\Message\SmsDeliveryReport::setTimeQueued()
- 2.x src/Entity/SmsDeliveryReport.php \Drupal\sms\Entity\SmsDeliveryReport::setTimeQueued()
Same name and namespace in other branches
- 8 src/Entity/SmsDeliveryReport.php \Drupal\sms\Entity\SmsDeliveryReport::setTimeQueued()
- 2.1.x src/Entity/SmsDeliveryReport.php \Drupal\sms\Entity\SmsDeliveryReport::setTimeQueued()
Sets the time the message was queued.
Parameters
int|null $time: The timestamp when the message was queued, or NULL if unknown.
Return value
$this Returns this report object for chaining.
Overrides SmsDeliveryReportInterface::setTimeQueued
File
- src/
Entity/ SmsDeliveryReport.php, line 131
Class
- SmsDeliveryReport
- Defines the SMS message delivery report entity.
Namespace
Drupal\sms\EntityCode
public function setTimeQueued($time) {
$this
->setStatus(SmsMessageReportStatus::QUEUED)
->setStatusTime($time);
return $this;
}