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
public
|
#
__construct( array|
Constructor |
public
|
|
public
mixed
|
|
public
string
|
|
public
|
|
public
|
|
public
mixed
|
|
public
|
|
public
|
#
setClient(
Set the client object that will execute the command |
public
|
|
public
|
|
public
|
|
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 |
add(),
clear(),
count(),
filter(),
fromConfig(),
get(),
getAll(),
getIterator(),
getKeys(),
getPath(),
hasKey(),
hasValue(),
inject(),
keySearch(),
map(),
merge(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
overwriteWith(),
remove(),
replace(),
set(),
toArray()
|
string |
HEADERS_OPTION
|
'command.headers' |
|
string |
ON_COMPLETE
|
'command.on_complete' |
|
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' |
|
string |
RESPONSE_BODY
|
'command.response_body' |
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
|