public function SmsMessageResultInterface::setCreditsBalance in SMS Framework 2.1.x
Same name and namespace in other branches
- 8 src/Message/SmsMessageResultInterface.php \Drupal\sms\Message\SmsMessageResultInterface::setCreditsBalance()
- 2.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 119
Class
- SmsMessageResultInterface
- Contains information on SMS message results.
Namespace
Drupal\sms\MessageCode
public function setCreditsBalance($balance);