X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPayment.php;h=2b665249af241e9c7c5d3ecfbc5b87835724720b;hb=49692d2f70966661298e0d755b282b53f28391e5;hp=7a72e8e88d32208512074e979f2297ca73bd542a;hpb=13da61c7967d5e30a0e335060fc43465d4fe5625;p=civicrm-core.git diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index 7a72e8e88d..2b665249af 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -206,6 +206,27 @@ abstract class CRM_Core_Payment { } } + /** + * Getter for the payment processor. + * + * The payment processor array is based on the civicrm_payment_processor table entry. + * + * @return array + * Payment processor array. + */ + public function getPaymentProcessor() { + return $this->_paymentProcessor; + } + + /** + * Setter for the payment processor. + * + * @param array $processor + */ + public function setPaymentProcessor($processor) { + $this->_paymentProcessor = $processor; + } + /** * Setter for the payment form that wants to use the processor. *