/** * Constructor. * * @param ProviderInterface $providerObject Parent payment * @param array $options Configuration array * * @return self */ public function __construct(ProviderInterface $providerObject, array $options = array()) { $this->providerObject = $providerObject; $this->paymentObject = $this->providerObject->getPaymentObject(); $this->pibaseObject = $this->paymentObject->getParentObject(); $this->options = $options; }
/** * Constructor. * * @param \CommerceTeam\Commerce\Payment\PaymentInterface $paymentObject Payment * @param array $options Configuration array * * @return self */ public function __construct(\CommerceTeam\Commerce\Payment\PaymentInterface $paymentObject, array $options = array()) { $this->paymentObject = $paymentObject; $this->pibaseObject = $this->paymentObject->getParentObject(); $this->options = $options; }