You are here

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

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

Sets the status of the message.

Parameters

string|null $status: A status code from \Drupal\sms\Message\SmsMessageReportStatus, or NULL if unknown.

Return value

$this Returns this report object for chaining.

Overrides SmsDeliveryReportInterface::setStatus

File

src/Entity/SmsDeliveryReport.php, line 85

Class

SmsDeliveryReport
Defines the SMS message delivery report entity.

Namespace

Drupal\sms\Entity

Code

public function setStatus($status) {
  $this
    ->set('status', $status);
  return $this;
}