You are here

interface SmsDeliveryReportInterface in SMS Framework 8

Same name in this branch
  1. 8 src/Message/SmsDeliveryReportInterface.php \Drupal\sms\Message\SmsDeliveryReportInterface
  2. 8 src/Entity/SmsDeliveryReportInterface.php \Drupal\sms\Entity\SmsDeliveryReportInterface
Same name and namespace in other branches
  1. 2.x src/Message/SmsDeliveryReportInterface.php \Drupal\sms\Message\SmsDeliveryReportInterface
  2. 2.1.x src/Message/SmsDeliveryReportInterface.php \Drupal\sms\Message\SmsDeliveryReportInterface

Contains information about an SMS message.

Hierarchy

Expanded class hierarchy of SmsDeliveryReportInterface

All classes that implement SmsDeliveryReportInterface

7 files declare their use of SmsDeliveryReportInterface
SmsDeliveryReport.php in src/Entity/SmsDeliveryReport.php
SmsDeliveryReportInterface.php in src/Entity/SmsDeliveryReportInterface.php
SmsFrameworkDeliveryReportTest.php in tests/src/Functional/SmsFrameworkDeliveryReportTest.php
SmsFrameworkDeliveryReportTestTrait.php in tests/src/Functional/SmsFrameworkDeliveryReportTestTrait.php
SmsFrameworkMessageResultTestTrait.php in tests/src/Functional/SmsFrameworkMessageResultTestTrait.php

... See full list

File

src/Message/SmsDeliveryReportInterface.php, line 8

Namespace

Drupal\sms\Message
View source
interface SmsDeliveryReportInterface {

  /**
   * Gets the gateway tracking ID for the message.
   *
   * @return string|null
   *   The gateway tracking ID for the message, or NULL if there is no tracking
   *   ID.
   */
  public function getMessageId();

  /**
   * Sets the gateway tracking ID for the message.
   *
   * @param string|null $message_id
   *   The gateway tracking ID for the message, or NULL if there is no tracking
   *   ID.
   *
   * @return $this
   *   Returns this report object for chaining.
   */
  public function setMessageId($message_id);

  /**
   * Gets the recipient for the message.
   *
   * @return string
   *   The recipient for the message.
   */
  public function getRecipient();

  /**
   * Sets the recipient for the message.
   *
   * @param string $recipient
   *   The recipient for the message.
   *
   * @return $this
   *   Returns this report object for chaining.
   */
  public function setRecipient($recipient);

  /**
   * Gets the status of the message.
   *
   * @return string|null
   *   A status code from \Drupal\sms\Message\SmsMessageReportStatus, or NULL if
   *   unknown.
   */
  public function getStatus();

  /**
   * Sets the status of the message.
   *
   * @param string|null $status
   *   A status code from \Drupal\sms\Message\SmsMessageReportStatus, or NULL if
   *   unknown.
   *
   * @return $this
   *   Returns this report object for chaining.
   */
  public function setStatus($status);

  /**
   * Gets the status message.
   *
   * @return string
   *   The status message as provided by the gateway API.
   */
  public function getStatusMessage();

  /**
   * Sets the status message.
   *
   * @param string $message
   *   The status message as provided by the gateway API.
   *
   * @return $this
   *   Returns this report object for chaining.
   */
  public function setStatusMessage($message);

  /**
   * Gets the time the message was queued.
   *
   * @return int|null
   *   The timestamp when the message was queued, or NULL if unknown.
   */
  public function getTimeQueued();

  /**
   * Sets the time the message was queued.
   *
   * @param int|null $time
   *   The timestamp when the message was queued, or NULL if unknown.
   *
   * @return $this
   *   Returns this report object for chaining.
   */
  public function setTimeQueued($time);

  /**
   * Gets the time the message was delivered to the recipient.
   *
   * @return int|null
   *   The timestamp when the message was delivered to the recipient, or NULL if
   *   unknown.
   */
  public function getTimeDelivered();

  /**
   * Sets the time the message was delivered to the recipient.
   *
   * @param int|null $time
   *   The timestamp when the message was delivered to the recipient, or NULL if
   *   unknown.
   *
   * @return $this
   *   Returns this report object for chaining.
   */
  public function setTimeDelivered($time);

  /**
   * Gets the gateway-provided timestamp for the current status.
   *
   * @return int
   *   A UNIX timestamp.
   */
  public function getStatusTime();

  /**
   * Sets the gateway-provided timestamp for the current status.
   *
   * @param int $time
   *   A UNIX timestamp provided by the SMS gateway.
   *
   * @return $this
   *   Returns this report object for chaining.
   */
  public function setStatusTime($time);

}

Members

Namesort descending Modifiers Type Description Overrides
SmsDeliveryReportInterface::getMessageId public function Gets the gateway tracking ID for the message. 2
SmsDeliveryReportInterface::getRecipient public function Gets the recipient for the message. 2
SmsDeliveryReportInterface::getStatus public function Gets the status of the message. 2
SmsDeliveryReportInterface::getStatusMessage public function Gets the status message. 2
SmsDeliveryReportInterface::getStatusTime public function Gets the gateway-provided timestamp for the current status. 2
SmsDeliveryReportInterface::getTimeDelivered public function Gets the time the message was delivered to the recipient. 2
SmsDeliveryReportInterface::getTimeQueued public function Gets the time the message was queued. 2
SmsDeliveryReportInterface::setMessageId public function Sets the gateway tracking ID for the message. 2
SmsDeliveryReportInterface::setRecipient public function Sets the recipient for the message. 2
SmsDeliveryReportInterface::setStatus public function Sets the status of the message. 2
SmsDeliveryReportInterface::setStatusMessage public function Sets the status message. 2
SmsDeliveryReportInterface::setStatusTime public function Sets the gateway-provided timestamp for the current status. 2
SmsDeliveryReportInterface::setTimeDelivered public function Sets the time the message was delivered to the recipient. 2
SmsDeliveryReportInterface::setTimeQueued public function Sets the time the message was queued. 2