amount = $amount; $this->currencyCode = $currencyCode; $this->userId = $userId; $this->assocId = $assocId; } /** * Get the row id of the payment. * @return int */ function getId() { return $this->paymentId; } function getPaymentId() { if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.'); return $this->getId(); } /** * Set the id of payment * @param $paymentId int * @return int new payment id */ function setId($paymentId) { return $this->paymentId = $paymentId; } function setPaymentId($paymentId) { if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.'); return $this->setId($paymentId); } /** * Set the payment amount * @param $amount numeric * @return numeric new amount */ function setAmount($amount) { return $this->amount = $amount; } /** * Get the payment amount * @return numeric */ function getAmount() { return $this->amount; } /** * Set the currency code for the transaction (ISO 4217) * @param $currencyCode string * @return string new currency code */ function setCurrencyCode($currencyCode) { return $this->currencyCode = $currencyCode; } /** * Get the currency code for the transaction (ISO 4217) * @return string */ function getCurrencyCode() { return $this->currencyCode; } /** * Get the name of the transaction. * @return string */ function getName() { // must be implemented by sub-classes assert(false); } /** * Get a description of the transaction. * @return string */ function getDescription() { // must be implemented by sub-classes assert(false); } /** * Set the user ID of the customer. * @param $userId int * @return int New user ID */ function setUserId($userId) { return $this->userId = $userId; } /** * Get the user ID of the customer. * @return int */ function getUserId() { return $this->userId; } /** * Set the association ID for the payment. * @param $assocId int * @return int New association ID */ function setAssocId($assocId) { return $this->assocId = $assocId; } /** * Get the association ID for the payment. * @return int */ function getAssocId() { return $this->assocId; } } ?>