File manager - Edit - /home/jardides/www/Cloud/3rdparty/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Model/MockCommandIterator.php
Back
<?php namespace Guzzle\Tests\Service\Mock\Model; use Guzzle\Service\Resource\ResourceIterator; class MockCommandIterator extends ResourceIterator { public $calledNext = 0; protected function sendRequest() { if ($this->nextToken) { $this->command->set('next_token', $this->nextToken); } $this->command->set('page_size', (int) $this->calculatePageSize()); $this->command->execute(); $data = json_decode($this->command->getResponse()->getBody(true), true); $this->nextToken = $data['next_token']; return $data['resources']; } public function next() { $this->calledNext++; parent::next(); } public function getResources() { return $this->resources; } public function getIteratedCount() { return $this->iteratedCount; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings