/home/techb158/immovalet.ca/report/Client/stripe-php/lib/Util
NameSizeModeActions
AutoPagingIterator.php15990666editdlrm
CaseInsensitiveArray.php17350666editdlrm
DefaultLogger.php5060666editdlrm
LoggerInterface.php12090666editdlrm
RandomGenerator.php8340666editdlrm
RequestOptions.php33220666editdlrm
Set.php7890666editdlrm
Util.php139920666editdlrm
Edit: /home/techb158/immovalet.ca/report/Client/stripe-php/lib/Util/AutoPagingIterator.php (1599B)
page = $collection; $this->params = $params; } public function rewind() { // Actually rewinding would require making a copy of the original page. } public function current() { $item = current($this->page->data); $this->lastId = $item !== false ? $item['id'] : null; return $item; } public function key() { return key($this->page->data) + $this->pageOffset; } public function next() { $item = next($this->page->data); if ($item === false) { // If we've run out of data on the current page, try to fetch another one // and increase the offset the new page would start at $this->pageOffset += count($this->page->data); if ($this->page['has_more']) { $this->params = array_merge( $this->params ?: [], ['starting_after' => $this->lastId] ); $this->page = $this->page->all($this->params); } else { return false; } } } public function valid() { $key = key($this->page->data); $valid = ($key !== null && $key !== false); return $valid; } }