public function SmsMessageResult::getCreditsBalance in SMS Framework 8
Same name in this branch
- 8 src/Message/SmsMessageResult.php \Drupal\sms\Message\SmsMessageResult::getCreditsBalance()
- 8 src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::getCreditsBalance()
Same name and namespace in other branches
- 2.x src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::getCreditsBalance()
- 2.1.x src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::getCreditsBalance()
Gets the credit balance after this transaction.
Return value
float|null The credit balance after the message is processed, or NULL if unknown.
Overrides SmsMessageResultInterface::getCreditsBalance
File
- src/
Entity/ SmsMessageResult.php, line 119
Class
- SmsMessageResult
- Defines the SMS message result entity.
Namespace
Drupal\sms\EntityCode
public function getCreditsBalance() {
return $this
->get('credits_balance')->value;
}