diff --git a/src/Model/Account.php b/src/Model/Account.php index 1b4ab4f..81fe57d 100755 --- a/src/Model/Account.php +++ b/src/Model/Account.php @@ -163,7 +163,7 @@ public function sendPayment(Payment $payment, $signingKeys) * @param int $limit * @return Transaction[] */ - public function getTransactions($sinceCursor = null, $limit = 50) + public function getTransactions($sinceCursor = null, $limit = 50, $order = 'asc') { $transactions = []; @@ -172,6 +172,7 @@ public function getTransactions($sinceCursor = null, $limit = 50) if ($sinceCursor) $params['cursor'] = $sinceCursor; if ($limit) $params['limit'] = $limit; + if ($order) $params['order'] = $order; if ($params) { $url .= '?' . http_build_query($params); @@ -420,4 +421,4 @@ public function getData() { return $this->data; } -} \ No newline at end of file +}