Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ContextHelper.php
Go to the documentation of this file.
1 <?php
7 
9 
18 {
27  {
28  if (!$paymentInfo instanceof \Magento\Sales\Api\Data\OrderPaymentInterface) {
29  throw new \LogicException('Order payment should be provided.');
30  }
31  }
32 
41  {
42  if (!$paymentInfo instanceof \Magento\Quote\Api\Data\PaymentInterface) {
43  throw new \LogicException('Quote payment should be provided.');
44  }
45  }
46 }
$paymentInfo
static assertQuotePayment(InfoInterface $paymentInfo)
static assertOrderPayment(InfoInterface $paymentInfo)