コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 /**
  * 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);
 }