/** * Order ID getter * Attempts to get ID from set order payment object, if any, or from data by key 'order_id' * * @return int|null */ public function getOrderId() { $orderId = $this->_getData('order_id'); if ($orderId) { return $orderId; } if ($this->_paymentObject) { return $this->_paymentObject->getOrder() ? $this->_paymentObject->getOrder()->getId() : $this->_paymentObject->getParentId(); } }
/** * {@inheritdoc} */ public function getParentId() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getParentId'); if (!$pluginInfo) { return parent::getParentId(); } else { return $this->___callPlugins('getParentId', func_get_args(), $pluginInfo); } }