amount = $amount; $this->currencyCode = $currencyCode; $this->userId = $userId; $this->assocId = $assocId; } /** * Get the row id of the payment. * * @return int */ public function getId() { return $this->paymentId; } /** * Set the id of payment * * @param int $paymentId * * @return int new payment id */ public function setId($paymentId) { return $this->paymentId = $paymentId; } /** * Set the payment amount * * @param float $amount * * @return float new amount */ public function setAmount($amount) { return $this->amount = $amount; } /** * Get the payment amount * * @return float */ public function getAmount() { return $this->amount; } /** * Set the currency code for the transaction (ISO 4217) * * @param string $currencyCode * * @return string new currency code */ public function setCurrencyCode($currencyCode) { return $this->currencyCode = $currencyCode; } /** * Get the currency code for the transaction (ISO 4217) * * @return string */ public function getCurrencyCode() { return $this->currencyCode; } /** * Get the context ID for the payment. * * @return int */ public function getContextId() { return $this->contextId; } /** * Set the context ID for the payment. * * @param int $contextId */ public function setContextId($contextId) { $this->contextId = $contextId; } /** * Set the type for this payment (PaymentManager::PAYMENT_TYPE_...) * * @param int $type PaymentManager::PAYMENT_TYPE_... * * @return int New payment type */ public function setType($type) { return $this->type = $type; } /** * Get the type of this payment (PaymentManager::PAYMENT_TYPE_...) * * @return int PaymentManager::PAYMENT_TYPE_... */ public function getType() { return $this->type; } /** * Set the user ID of the customer. * * @param int $userId * * @return int New user ID */ public function setUserId($userId) { return $this->userId = $userId; } /** * Get the user ID of the customer. * * @return int */ public function getUserId() { return $this->userId; } /** * Set the association ID for the payment. * * @param int $assocId * * @return int New association ID */ public function setAssocId($assocId) { return $this->assocId = $assocId; } /** * Get the association ID for the payment. * * @return int */ public function getAssocId() { return $this->assocId; } } if (!PKP_STRICT_MODE) { class_alias('\PKP\payment\Payment', '\Payment'); }