Open Monograph Press  3.3.0
IterableCommand.php
1 <?php
2 
4 
6 
8 {
9  protected function createOperation()
10  {
11  return new Operation(array(
12  'name' => 'iterable_command',
13  'parameters' => array(
14  'page_size' => array('type' => 'integer'),
15  'next_token' => array('type' => 'string')
16  )
17  ));
18  }
19 
20  protected function build()
21  {
22  $this->request = $this->client->createRequest('GET');
23 
24  // Add the next token and page size query string values
25  $this->request->getQuery()->set('next_token', $this->get('next_token'));
26 
27  if ($this->get('page_size')) {
28  $this->request->getQuery()->set('page_size', $this->get('page_size'));
29  }
30  }
31 }
Guzzle\Service\Description\Operation
Definition: Operation.php:10
Guzzle\Tests\Service\Mock\Command\MockCommand
Definition: MockCommand.php:7
Guzzle\Tests\Service\Mock\Command\IterableCommand
Definition: IterableCommand.php:7
Guzzle\Tests\Service\Mock\Command
Definition: IterableCommand.php:3
Guzzle\Tests\Service\Mock\Command\IterableCommand\build
build()
Definition: IterableCommand.php:20
Guzzle\Tests\Service\Mock\Command\IterableCommand\createOperation
createOperation()
Definition: IterableCommand.php:9