/** * Set transaction messages * * @param Transaction $transaction Transaction * @return $this */ public function setTransactionMessages(Transaction $transaction) { $messages = $transaction->getMessages(); $messages->set('info', $this->messages); $transaction->setMessages($messages); return $this; }
/** * Setting transaction notices * * @param Transaction &$transaction * * @return void */ public function setTransactionNotices(Transaction &$transaction) { $messages = $transaction->getMessages(); if (!$this->isEmpty()) { $messages->set('notices', $this->getNotices()); } $transaction->setMessages($messages); }