Skip to content

Commit 7fbe9a0

Browse files
authored
Merge pull request #917 from feesynergy/master
Handle the new pagination element
2 parents 7fdf946 + 098906b commit 7fbe9a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/XeroPHP/Remote/Response.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ public function parseXML()
317317
/** @var SimpleXMLElement $root_child */
318318
foreach ($sxml as $child_index => $root_child) {
319319
switch ($child_index) {
320+
case 'PageInfo':
321+
// TODO: We can potentially handle the page info and make it a value on the response object
322+
break;
320323
case 'ErrorNumber':
321324
$this->root_error['code'] = (string)$root_child;
322325

@@ -361,6 +364,9 @@ public function parseJSON()
361364

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

0 commit comments

Comments
 (0)