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;
    }
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;
    }
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 ; }
Get all transactions. per page.

@param $page

@throws \Exception|mixed

@return array
Get all transactions . per page .