get_amount()
get_amount(mixed $trans)
Get / modify the amount of the transaction.
Get the amount of the transaction. Can be used to either, retrieve amount from the database, add / subtract fees, change the inputted amount as needed, etc. To change the amount, just modify the parent::$amount variable directly.
Parameters
mixed | $trans | The 'transaction' object of the transaction. |