コード例 #1
0
 public function addTransactions($transactions)
 {
     if (!is_array($transactions)) {
         $transactions = [$transactions];
     }
     foreach ($transactions as $rawTransaction) {
         $transaction = new Transaction();
         $transaction->hydrate($rawTransaction);
         $this->_transactions[] = $transaction;
     }
 }
コード例 #2
0
 public function setTransaction($rawTransaction)
 {
     $transaction = new Transaction();
     $transaction->hydrate($rawTransaction);
     $this->_transaction = $transaction;
 }