public function SmsMessageResultInterface::setCreditsUsed in SMS Framework 2.x
Same name and namespace in other branches
- 8 src/Message/SmsMessageResultInterface.php \Drupal\sms\Message\SmsMessageResultInterface::setCreditsUsed()
- 2.1.x src/Message/SmsMessageResultInterface.php \Drupal\sms\Message\SmsMessageResultInterface::setCreditsUsed()
Sets the credits consumed for this transaction.
Parameters
float|null $credits_used: The credits consumed for this transaction, or NULL if unknown.
Return value
$this Returns this result object for chaining.
Throws
\Drupal\sms\Exception\SmsException Thrown if credits set is an invalid variable type.
2 methods override SmsMessageResultInterface::setCreditsUsed()
- SmsMessageResult::setCreditsUsed in src/
Message/ SmsMessageResult.php - Sets the credits consumed for this transaction.
- SmsMessageResult::setCreditsUsed in src/
Entity/ SmsMessageResult.php - Sets the credits consumed for this transaction.
File
- src/
Message/ SmsMessageResultInterface.php, line 141
Class
- SmsMessageResultInterface
- Contains information on SMS message results.
Namespace
Drupal\sms\MessageCode
public function setCreditsUsed($credits_used);