/** * Check payment transaction status * * @param \XLite\Model\Payment\Transaction $transaction Transaction * @param mixed $status Status * * @return boolean */ public function checkPaymentTransactionStatusEqual(\XLite\Model\Payment\Transaction $transaction, $status) { return is_array($status) ? in_array($transaction->getStatus(), $status) : $transaction->getStatus() == $status; }
/** * {@inheritDoc} */ public function getStatus() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getStatus', array()); return parent::getStatus(); }