$calledNext
$calledNext :
Class that holds an event dispatcher
$command : \Guzzle\Service\Command\CommandInterface
$originalCommand : \Guzzle\Service\Command\CommandInterface
$eventDispatcher : \Symfony\Component\EventDispatcher\EventDispatcherInterface
__construct(\Guzzle\Service\Command\CommandInterface $command, array $data = array())
\Guzzle\Service\Command\CommandInterface | $command | Initial command used for iteration |
array | $data | Associative array of additional parameters. You may specify any number of custom options for an iterator. Among these options, you may also specify the following values:
|
setLimit(integer $limit) : \Guzzle\Service\Resource\ResourceIteratorInterface
Attempt to limit the total number of resources returned by the iterator.
You may still receive more items than you specify. Set to 0 to specify no limit.
integer | $limit | Limit amount |
setPageSize(integer $pageSize) : \Guzzle\Service\Resource\ResourceIteratorInterface
Attempt to limit the total number of resources retrieved per request by the iterator.
The iterator may return more than you specify in the page size argument depending on the service and underlying command implementation. Set to 0 to specify no page size limitation.
integer | $pageSize | Limit amount |
set(string $key, mixed $value) : \Guzzle\Service\Resource\ResourceIterator
Set an option on the iterator
string | $key | Key of the option to set |
mixed | $value | Value to set for the option |
setEventDispatcher(\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher) : self
Set the EventDispatcher of the request
\Symfony\Component\EventDispatcher\EventDispatcherInterface | $eventDispatcher |
getEventDispatcher() : \Symfony\Component\EventDispatcher\EventDispatcherInterface
Get the EventDispatcher of the request
dispatch(string $eventName, array $context = array()) : \Guzzle\Common\Event
Helper to dispatch Guzzle events and set the event name on the event
string | $eventName | Name of the event to dispatch |
array | $context | Context of the event |
Returns the created event object
addSubscriber(\Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber) : self
Add an event subscriber to the dispatcher
\Symfony\Component\EventDispatcher\EventSubscriberInterface | $subscriber | Event subscriber |
calculatePageSize() : integer
Returns the value that should be specified for the page size for a request that will maintain any hard limits, but still honor the specified pageSize if the number of items retrieved + pageSize < hard limit
Returns the page size of the next request.