original_string: public function allTransactions($page)
      {
          $transactions = [];
          $transactionData = $this->getTransactionResource()->getAll($page);
  
          if ($transactionData instanceof \Exception) {
              throw $transactionData;
          }
  
          foreach ($transactionData as $transaction) {
              $transactions[] = TransactionObject::make($transaction);
          }
  
          return $transactions;
      }
code: public function allTransactions($page)
      {
          $transactions = [];
          $transactionData = $this->getTransactionResource()->getAll($page);
  
          if ($transactionData instanceof \Exception) {
              throw $transactionData;
          }
  
          foreach ($transactionData as $transaction) {
              $transactions[] = TransactionObject::make($transaction);
          }
  
          return $transactions;
      }
code_tokens: public function allTransactions ( $ page ) { $ transactions = [ ] ; $ transactionData = $ this -> getTransactionResource ( ) -> getAll ( $ page ) ; if ( $ transactionData instanceof \ Exception ) { throw $ transactionData ; } foreach ( $ transactionData as $ transaction ) { $ transactions [ ] = TransactionObject :: make ( $ transaction ) ; } return $ transactions ; }
docstring: Get all transactions. per page.
  
  @param $page
  
  @throws \Exception|mixed
  
  @return array
docstring_tokens: Get all transactions . per page .