You are here

public function SmsMessageResult::getError in SMS Framework 2.1.x

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

Gets the error of the message.

Return value

string|null A error code from \Drupal\sms\Message\SmsMessageResultError, or NULL if there was no error.

Overrides SmsMessageResultInterface::getError

File

src/Message/SmsMessageResult.php, line 56

Class

SmsMessageResult
The result of an SMS messaging transaction.

Namespace

Drupal\sms\Message

Code

public function getError() {
  return $this->error;
}