Skip to content

Commit

Permalink
Merge pull request #917 from feesynergy/master
Browse files Browse the repository at this point in the history
Handle the new pagination element
  • Loading branch information
calcinai committed Jul 1, 2024
2 parents 7fdf946 + 098906b commit 7fbe9a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/XeroPHP/Remote/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ public function parseXML()
/** @var SimpleXMLElement $root_child */
foreach ($sxml as $child_index => $root_child) {
switch ($child_index) {
case 'PageInfo':
// TODO: We can potentially handle the page info and make it a value on the response object
break;
case 'ErrorNumber':
$this->root_error['code'] = (string)$root_child;

Expand Down Expand Up @@ -361,6 +364,9 @@ public function parseJSON()

foreach ($json as $child_index => $root_child) {
switch ($child_index) {
case 'PageInfo':
// TODO: We can potentially handle the page info and make it a value on the response object
break;
case 'ErrorNumber':
$this->root_error['code'] = $root_child;

Expand Down

0 comments on commit 7fbe9a0

Please sign in to comment.