/** * {@inheritDoc} */ public function getProfile() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getProfile', array()); return parent::getProfile(); }
/** * Check - order's profile removed or not * * @param \XLite\Model\Payment\Transaction $transaction Transaction * * @return boolean */ protected function isProfileRemoved(\XLite\Model\Payment\Transaction $transaction) { return !$transaction->getOrder() || !$transaction->getProfile() || $transaction->getOrder()->getOrigProfile() && $transaction->getOrder()->getOrigProfile()->getOrder(); }