Interface CommandInterface
A command object that contains parameters that can be modified and accessed like an array and turned into an array
- Guzzle\Service\Command\CommandInterface implements ArrayAccess, Guzzle\Common\ToArrayInterface
Direct known implementers
Indirect known implementers
Aws\Common\Command\JsonCommand
,
Aws\Common\Command\QueryCommand
,
Aws\S3\Command\S3Command
,
Guzzle\Service\Command\ClosureCommand
,
Guzzle\Service\Command\OperationCommand
Methods summary
-
public
getName ( )
Get the short form name of the command
-
public
getOperation ( )
Get the API operation information about the command
-
public
execute ( )
Execute the command and return the result
-
public
getClient ( )
Get the client object that will execute the command
-
public
setClient ( Guzzle\Service\ClientInterface $client )
Set the client object that will execute the command
-
public
getRequest ( )
Get the request object associated with the command
-
public
getResponse ( )
Get the response object associated with the command
-
public
getResult ( )
Get the result of the command
-
public
setResult ( mixed $result )
Set the result of the command
-
public
isPrepared ( )
Returns TRUE if the command has been prepared for executing
-
public
isExecuted ( )
Returns TRUE if the command has been executed
-
public
prepare ( )
Prepare the command for executing and create a request object.
-
public
getRequestHeaders ( )
Get the object that manages the request headers that will be set on any outbound requests from the command
-
public
setOnComplete ( mixed $callable )
Specify a callable to execute when the command completes
Methods detail
Get the short form name of the command
Returns
string
Get the API operation information about the command
Returns
Execute the command and return the result
Returns
Throws
public
Guzzle\Service\Command\CommandInterface
setClient( Guzzle\Service\ClientInterface
$client )
Set the client object that will execute the command
Parameters
- $client
Guzzle\Service\ClientInterface
$client The client object that will execute the command
Returns
Get the request object associated with the command
Returns
Throws
Get the response object associated with the command
Returns
Throws
Get the result of the command
Returns
Guzzle\Http\Message\Response
By default, commands return a Response object unless overridden in a subclass
Throws
Set the result of the command
Parameters
- $result
mixed
$result Result to set
Returns
Returns TRUE if the command has been prepared for executing
Returns
boolean
Returns TRUE if the command has been executed
Returns
boolean
Prepare the command for executing and create a request object.
Returns
Throws
Guzzle\Service\Exception\CommandException
if a client object has not been set previously or in the prepare()
Get the object that manages the request headers that will be set on any outbound requests from the command
Returns
Specify a callable to execute when the command completes
Parameters
- $callable
mixed
$callable Callable to execute when the command completes. The callable must accept aGuzzle\Service\Command\CommandInterface
object as the only argument.
Returns
Throws
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()