Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 75e457c

Browse files
committedFeb 16, 2014
Rendering booked account balance from XML
1 parent 0484403 commit 75e457c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎src/AqBanking/ContextXmlRenderer.php

+12
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ public function getTransactions()
7575
return $transactions;
7676
}
7777

78+
/**
79+
* @return Money
80+
*/
81+
public function getBalance()
82+
{
83+
$statusNode = $this->domDocument->getElementsByTagName('bookedBalance')->item(0);
84+
85+
return $this->renderMoneyElement(
86+
$this->xPath->query('value', $statusNode)->item(0)
87+
);
88+
}
89+
7890
/**
7991
* @param \DOMNodeList $nodes
8092
* @throws \RuntimeException

0 commit comments

Comments
 (0)
Please sign in to comment.