2011-02-28 22:30:22 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Guzzle\Tests\Service\Mock\Command;
|
|
|
|
|
2012-09-17 12:54:00 -07:00
|
|
|
use Guzzle\Service\Description\Operation;
|
|
|
|
|
2011-02-28 22:30:22 -06:00
|
|
|
class OtherCommand extends MockCommand
|
|
|
|
{
|
2012-09-17 12:54:00 -07:00
|
|
|
protected function createOperation()
|
2012-09-12 12:16:51 -07:00
|
|
|
{
|
2012-09-17 12:54:00 -07:00
|
|
|
return new Operation(array(
|
|
|
|
'name' => 'other_command',
|
|
|
|
'parameters' => array(
|
2012-09-12 12:16:51 -07:00
|
|
|
'test' => array(
|
|
|
|
'default' => '123',
|
|
|
|
'required' => true,
|
|
|
|
'doc' => 'Test argument'
|
|
|
|
),
|
|
|
|
'other' => array(),
|
|
|
|
'arg' => array('type' => 'string'),
|
2012-09-17 12:54:00 -07:00
|
|
|
'static' => array('static' => true, 'default' => 'this is static')
|
2012-09-12 12:16:51 -07:00
|
|
|
)
|
2012-09-17 12:54:00 -07:00
|
|
|
));
|
2012-09-12 12:16:51 -07:00
|
|
|
}
|
|
|
|
|
2011-02-28 22:30:22 -06:00
|
|
|
protected function build()
|
|
|
|
{
|
|
|
|
$this->request = $this->client->getRequest('HEAD');
|
|
|
|
}
|
2012-04-21 00:23:07 -07:00
|
|
|
}
|