You are here

public function SmsDeliveryReport::setTimeQueued in SMS Framework 8

Same name in this branch
  1. 8 src/Message/SmsDeliveryReport.php \Drupal\sms\Message\SmsDeliveryReport::setTimeQueued()
  2. 8 src/Entity/SmsDeliveryReport.php \Drupal\sms\Entity\SmsDeliveryReport::setTimeQueued()
Same name and namespace in other branches
  1. 2.x src/Entity/SmsDeliveryReport.php \Drupal\sms\Entity\SmsDeliveryReport::setTimeQueued()
  2. 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 129

Class

SmsDeliveryReport
Defines the SMS message delivery report entity.

Namespace

Drupal\sms\Entity

Code

public function setTimeQueued($time) {
  $this
    ->setStatus(SmsMessageReportStatus::QUEUED)
    ->setStatusTime($time);
  return $this;
}