SmsDeliveryReport.php in SMS Framework 8
Same filename in this branch
Same filename and directory in other branches
Namespace
Drupal\sms\MessageFile
src/Message/SmsDeliveryReport.phpView source
<?php
namespace Drupal\sms\Message;
/**
* A value object that holds the SMS delivery report.
*/
class SmsDeliveryReport implements SmsDeliveryReportInterface {
/**
* The unique identifier for the message assigned by the gateway.
*
* @var string
*/
protected $messageId = '';
/**
* The recipient of the message.
*
* @var string
*/
protected $recipient = '';
/**
* Status code for the message.
*
* A status code from \Drupal\sms\Message\SmsMessageStatus, or NULL if
* unknown.
*
* @var string|null
*/
protected $status = NULL;
/**
* The status message as provided by the gateway API.
*
* @var string
*/
protected $statusMessage = '';
/**
* The timestamp when the delivery report status was updated.
*
* @var int
*/
protected $statusTime = NULL;
/**
* The timestamp when the message was queued, or NULL if unknown.
*
* @var string|null
*/
protected $timeQueued = NULL;
/**
* The timestamp when the message was delivered, or NULL if unknown.
*
* @var string|null
*/
protected $timeDelivered = NULL;
/**
* {@inheritdoc}
*/
public function getMessageId() {
return $this->messageId;
}
/**
* {@inheritdoc}
*/
public function setMessageId($message_id) {
$this->messageId = $message_id;
return $this;
}
/**
* {@inheritdoc}
*/
public function getRecipient() {
return $this->recipient;
}
/**
* {@inheritdoc}
*/
public function setRecipient($recipient) {
$this->recipient = $recipient;
return $this;
}
/**
* {@inheritdoc}
*/
public function getStatus() {
return $this->status;
}
/**
* {@inheritdoc}
*/
public function setStatus($status) {
$this->status = $status;
return $this;
}
/**
* {@inheritdoc}
*/
public function getStatusMessage() {
return $this->statusMessage;
}
/**
* {@inheritdoc}
*/
public function setStatusMessage($message) {
$this->statusMessage = $message;
return $this;
}
/**
* {@inheritdoc}
*/
public function getTimeQueued() {
return $this->timeQueued;
}
/**
* {@inheritdoc}
*/
public function setTimeQueued($time) {
$this->timeQueued = $time;
return $this;
}
/**
* {@inheritdoc}
*/
public function getTimeDelivered() {
return $this->timeDelivered;
}
/**
* {@inheritdoc}
*/
public function setTimeDelivered($time) {
$this->timeDelivered = $time;
return $this;
}
/**
* {@inheritdoc}
*/
public function getStatusTime() {
return $this->statusTime;
}
/**
* {@inheritdoc}
*/
public function setStatusTime($time) {
$this->statusTime = $time;
return $this;
}
}
Classes
Name | Description |
---|---|
SmsDeliveryReport | A value object that holds the SMS delivery report. |