You are here

public function SmsMessageResultInterface::setCreditsBalance in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Message/SmsMessageResultInterface.php \Drupal\sms\Message\SmsMessageResultInterface::setCreditsBalance()
  2. 2.1.x src/Message/SmsMessageResultInterface.php \Drupal\sms\Message\SmsMessageResultInterface::setCreditsBalance()

Sets the credit balance after this transaction.

Parameters

float|null $balance: The credit balance after the message is processed, or NULL if unknown.

Return value

$this Returns this result object for chaining.

Throws

\Drupal\sms\Exception\SmsException Thrown if balance set is an invalid variable type.

2 methods override SmsMessageResultInterface::setCreditsBalance()
SmsMessageResult::setCreditsBalance in src/Message/SmsMessageResult.php
Sets the credit balance after this transaction.
SmsMessageResult::setCreditsBalance in src/Entity/SmsMessageResult.php
Sets the credit balance after this transaction.

File

src/Message/SmsMessageResultInterface.php, line 117

Class

SmsMessageResultInterface
Contains information on SMS message results.

Namespace

Drupal\sms\Message

Code

public function setCreditsBalance($balance);