You are here

public function SmsDeliveryReport::setStatusTime in SMS Framework 2.1.x

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

Sets the gateway-provided timestamp for the current status.

Parameters

int $time: A UNIX timestamp provided by the SMS gateway.

Return value

$this Returns this report object for chaining.

Overrides SmsDeliveryReportInterface::setStatusTime

File

src/Entity/SmsDeliveryReport.php, line 115

Class

SmsDeliveryReport
Defines the SMS message delivery report entity.

Namespace

Drupal\sms\Entity

Code

public function setStatusTime($time) {
  $this
    ->set('status_time', $time);
  return $this;
}