Open Monograph Press  3.3.0
OtherCommand.php
1 <?php
2 
4 
6 
7 class OtherCommand extends MockCommand
8 {
9  protected function createOperation()
10  {
11  return new Operation(array(
12  'name' => 'other_command',
13  'parameters' => array(
14  'test' => array(
15  'default' => '123',
16  'required' => true,
17  'doc' => 'Test argument'
18  ),
19  'other' => array(),
20  'arg' => array('type' => 'string'),
21  'static' => array('static' => true, 'default' => 'this is static')
22  )
23  ));
24  }
25 
26  protected function build()
27  {
28  $this->request = $this->client->getRequest('HEAD');
29  }
30 }
Guzzle\Service\Description\Operation
Definition: Operation.php:10
Guzzle\Tests\Service\Mock\Command\MockCommand
Definition: MockCommand.php:7
Guzzle\Tests\Service\Mock\Command
Definition: IterableCommand.php:3
Guzzle\Tests\Service\Mock\Command\OtherCommand\createOperation
createOperation()
Definition: OtherCommand.php:9
Guzzle\Tests\Service\Mock\Command\OtherCommand
Definition: OtherCommand.php:7
Guzzle\Tests\Service\Mock\Command\OtherCommand\build
build()
Definition: OtherCommand.php:26