Skip to content

Commit

Permalink
Handle the new pagination element
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett Bailey committed Jul 1, 2024
1 parent 7fdf946 commit 098906b
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 098906b

Please sign in to comment.