class SmsDeliveryReport in SMS Framework 8
Same name in this branch
- 8 src/Message/SmsDeliveryReport.php \Drupal\sms\Message\SmsDeliveryReport
- 8 src/Entity/SmsDeliveryReport.php \Drupal\sms\Entity\SmsDeliveryReport
Same name and namespace in other branches
- 2.x src/Message/SmsDeliveryReport.php \Drupal\sms\Message\SmsDeliveryReport
- 2.1.x src/Message/SmsDeliveryReport.php \Drupal\sms\Message\SmsDeliveryReport
A value object that holds the SMS delivery report.
Hierarchy
- class \Drupal\sms\Message\SmsDeliveryReport implements SmsDeliveryReportInterface
Expanded class hierarchy of SmsDeliveryReport
8 files declare their use of SmsDeliveryReport
- Incoming.php in tests/
modules/ sms_test_gateway/ src/ Plugin/ SmsGateway/ Incoming.php - LogGateway.php in src/
Plugin/ SmsGateway/ LogGateway.php - Memory.php in tests/
modules/ sms_test_gateway/ src/ Plugin/ SmsGateway/ Memory.php - SmsDevelMessageForm.php in modules/
sms_devel/ src/ Form/ SmsDevelMessageForm.php - SmsFrameworkDeliveryReportUnitTest.php in tests/
src/ Unit/ Message/ SmsFrameworkDeliveryReportUnitTest.php
File
- src/
Message/ SmsDeliveryReport.php, line 8
Namespace
Drupal\sms\MessageView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SmsDeliveryReport:: |
protected | property | The unique identifier for the message assigned by the gateway. | |
SmsDeliveryReport:: |
protected | property | The recipient of the message. | |
SmsDeliveryReport:: |
protected | property | Status code for the message. | |
SmsDeliveryReport:: |
protected | property | The status message as provided by the gateway API. | |
SmsDeliveryReport:: |
protected | property | The timestamp when the delivery report status was updated. | |
SmsDeliveryReport:: |
protected | property | The timestamp when the message was delivered, or NULL if unknown. | |
SmsDeliveryReport:: |
protected | property | The timestamp when the message was queued, or NULL if unknown. | |
SmsDeliveryReport:: |
public | function |
Gets the gateway tracking ID for the message. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Gets the recipient for the message. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Gets the status of the message. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Gets the status message. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Gets the gateway-provided timestamp for the current status. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Gets the time the message was delivered to the recipient. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Gets the time the message was queued. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Sets the gateway tracking ID for the message. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Sets the recipient for the message. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Sets the status of the message. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Sets the status message. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Sets the gateway-provided timestamp for the current status. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Sets the time the message was delivered to the recipient. Overrides SmsDeliveryReportInterface:: |
|
SmsDeliveryReport:: |
public | function |
Sets the time the message was queued. Overrides SmsDeliveryReportInterface:: |