Вход Регистрация
Файл: vkolhoze.com/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/IterableCommand.php
Строк: 31
<?php

namespace GuzzleTestsServiceMockCommand;

use 
GuzzleServiceDescriptionOperation;

class 
IterableCommand extends MockCommand
{
    protected function 
createOperation()
    {
        return new 
Operation(array(
            
'name'       => 'iterable_command',
            
'parameters' => array(
                
'page_size' => array('type' => 'integer'),
                
'next_token' => array('type' => 'string')
            )
        ));
    }

    protected function 
build()
    {
        
$this->request $this->client->createRequest('GET');

        
// Add the next token and page size query string values
        
$this->request->getQuery()->set('next_token'$this->get('next_token'));

        if (
$this->get('page_size')) {
            
$this->request->getQuery()->set('page_size'$this->get('page_size'));
        }
    }
}
Онлайн: 0
Реклама