public function Memory::getCreditsBalance in SMS Framework 2.1.x
Same name and namespace in other branches
- 8 tests/modules/sms_test_gateway/src/Plugin/SmsGateway/Memory.php \Drupal\sms_test_gateway\Plugin\SmsGateway\Memory::getCreditsBalance()
- 2.x tests/modules/sms_test_gateway/src/Plugin/SmsGateway/Memory.php \Drupal\sms_test_gateway\Plugin\SmsGateway\Memory::getCreditsBalance()
Returns the credit balance available on this gateway.
The 'credit_balance_available' plugin annotation should be set to inform the framework whether this gateway supports balance queries.
Return value
float|null The credit balance of the gateway, or NULL if unknown.
Overrides SmsGatewayPluginBase::getCreditsBalance
File
- tests/
modules/ sms_test_gateway/ src/ Plugin/ SmsGateway/ Memory.php, line 183
Class
- Memory
- Defines a gateway storing transmitted SMS in memory.
Namespace
Drupal\sms_test_gateway\Plugin\SmsGatewayCode
public function getCreditsBalance() {
return 13.36;
}