public function addTransactions($transactions)
 {
     if (!is_array($transactions)) {
         $transactions = [$transactions];
     }
     foreach ($transactions as $rawTransaction) {
         $transaction = new Transaction();
         $transaction->hydrate($rawTransaction);
         $this->_transactions[] = $transaction;
     }
 }
 public function setTransaction($rawTransaction)
 {
     $transaction = new Transaction();
     $transaction->hydrate($rawTransaction);
     $this->_transaction = $transaction;
 }