Class AbstractCommand
Command object to handle preparing and processing client requests and responses of the requests
- Guzzle\Common\Collection implements ArrayAccess, IteratorAggregate, Countable, Guzzle\Common\ToArrayInterface
- Guzzle\Service\Command\AbstractCommand implements Guzzle\Service\Command\CommandInterface
Direct known subclasses
Guzzle\Service\Command\ClosureCommand, Guzzle\Service\Command\OperationCommand, Guzzle\Tests\Service\Mock\Command\MockCommandIndirect known subclasses
Guzzle\Tests\Service\Mock\Command\IterableCommand, Guzzle\Tests\Service\Mock\Command\OtherCommand, Guzzle\Tests\Service\Mock\Command\Sub\SubNamespace: Guzzle\Service\Command
Located at src/Guzzle/Service/Command/AbstractCommand.php
public
|
#
__construct( array|
|
public
|
|
public
mixed
|
|
public
string
|
|
public
|
|
public
|
|
public
mixed
|
|
public
|
|
public
|
#
setClient(
Set the client object that will execute the command |
public
|
|
public
Response
|
|
public
Response
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
#
setValidator(
Set the validator used to validate and prepare command parameters and nested JSON schemas. If no validator is
set, then the command will validate using the default |
public
|
#
getRequestHeaders( )
Get the object that manages the request headers that will be set on any outbound requests from the command |
protected
|
|
abstract protected
|
|
protected
|
#
createOperation( )
Hook used to create an operation for concrete commands that are not associated with a service description |
protected
|
|
protected
|
|
protected
|
#
getValidator( )
Get the validator used to prepare and validate properties. If no validator has been set on the command, then
the default |
public
|
#
getValidationErrors( )
Get array of any validation errors If no validator has been set then return false |
add(),
clear(),
count(),
filter(),
fromConfig(),
get(),
getAll(),
getIterator(),
getKeys(),
getPath(),
hasKey(),
hasValue(),
inject(),
keySearch(),
map(),
merge(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
overwriteWith(),
remove(),
replace(),
set(),
setPath(),
toArray()
|
string |
HEADERS_OPTION
|
#
'command.headers'
|
string |
ON_COMPLETE
|
#
'command.on_complete'
|
string |
RESPONSE_BODY
|
#
'command.response_body'
|
string |
REQUEST_OPTIONS
|
#
'command.request_options'
|
string |
HIDDEN_PARAMS
|
#
'command.hidden_params'
|
string |
DISABLE_VALIDATION
|
#
'command.disable_validation'
|
string |
RESPONSE_PROCESSING
|
#
'command.response_processing'
|
string |
TYPE_RAW
|
#
'raw'
|
string |
TYPE_MODEL
|
#
'model'
|
string |
TYPE_NO_TRANSLATION
|
#
'no_translation'
|
protected
|
$client
Client object used to execute the command |
|
protected
|
$request
The request object associated with the command |
|
protected
mixed
|
$result
The result of the command |
|
protected
|
$operation
API information about the command |
|
protected
mixed
|
$onComplete
callable |
|
protected
|
$validator
Validator used to prepare and validate properties against a JSON schema |
$data
|