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