@@ -382,12 +382,12 @@ public function canFetchTransactionInfo()
382382 /**
383383 * Fetch transaction info
384384 *
385- * @param \Magento\Payment\Model\Info $payment
385+ * @param \Magento\Payment\Model\InfoInterface $payment
386386 * @param string $transactionId
387387 * @return array
388388 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
389389 */
390- public function fetchTransactionInfo (\Magento \Payment \Model \Info $ payment , $ transactionId )
390+ public function fetchTransactionInfo (\Magento \Payment \Model \InfoInterface $ payment , $ transactionId )
391391 {
392392 return [];
393393 }
@@ -497,7 +497,7 @@ public function getInfoBlockType()
497497 public function getInfoInstance ()
498498 {
499499 $ instance = $ this ->getData ('info_instance ' );
500- if (!$ instance instanceof \Magento \Payment \Model \Info ) {
500+ if (!$ instance instanceof \Magento \Payment \Model \InfoInterface ) {
501501 throw new \Magento \Framework \Exception \LocalizedException (__ ('We cannot retrieve the payment information object instance. ' ));
502502 }
503503 return $ instance ;
@@ -673,23 +673,23 @@ public function void(\Magento\Framework\Object $payment)
673673 /**
674674 * Whether this method can accept or deny payment
675675 *
676- * @param \Magento\Payment\Model\Info $payment
676+ * @param \Magento\Payment\Model\InfoInterface $payment
677677 * @return bool
678678 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
679679 */
680- public function canReviewPayment (\Magento \Payment \Model \Info $ payment )
680+ public function canReviewPayment (\Magento \Payment \Model \InfoInterface $ payment )
681681 {
682682 return $ this ->_canReviewPayment ;
683683 }
684684
685685 /**
686686 * Attempt to accept a payment that us under review
687687 *
688- * @param \Magento\Payment\Model\Info $payment
688+ * @param \Magento\Payment\Model\InfoInterface $payment
689689 * @return false
690690 * @throws \Magento\Framework\Exception\LocalizedException
691691 */
692- public function acceptPayment (\Magento \Payment \Model \Info $ payment )
692+ public function acceptPayment (\Magento \Payment \Model \InfoInterface $ payment )
693693 {
694694 if (!$ this ->canReviewPayment ($ payment )) {
695695 throw new \Magento \Framework \Exception \LocalizedException (__ ('The payment review action is unavailable. ' ));
@@ -700,11 +700,11 @@ public function acceptPayment(\Magento\Payment\Model\Info $payment)
700700 /**
701701 * Attempt to deny a payment that us under review
702702 *
703- * @param \Magento\Payment\Model\Info $payment
703+ * @param \Magento\Payment\Model\InfoInterface $payment
704704 * @return false
705705 * @throws \Magento\Framework\Exception\LocalizedException
706706 */
707- public function denyPayment (\Magento \Payment \Model \Info $ payment )
707+ public function denyPayment (\Magento \Payment \Model \InfoInterface $ payment )
708708 {
709709 if (!$ this ->canReviewPayment ($ payment )) {
710710 throw new \Magento \Framework \Exception \LocalizedException (__ ('The payment review action is unavailable. ' ));
0 commit comments