You are here

public function SmsMessage::setSendTime in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setSendTime()
  2. 2.1.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setSendTime()

Set the time to send the SMS message.

Parameters

int $send_time: The timestamp after which the SMS message should be sent.

Return value

$this Return SMS message for chaining.

Overrides SmsMessageInterface::setSendTime

File

src/Entity/SmsMessage.php, line 423

Class

SmsMessage
Defines the SMS message entity.

Namespace

Drupal\sms\Entity

Code

public function setSendTime($send_time) {
  $this
    ->set('send_on', $send_time);
  return $this;
}