Open Journal Systems
3.3.0
|
Public Member Functions | |
execute () | |
getClient () | |
getName () | |
getOperation () | |
getRequest () | |
getRequestHeaders () | |
getResponse () | |
getResult () | |
isExecuted () | |
isPrepared () | |
prepare () | |
setClient (ClientInterface $client) | |
setOnComplete ($callable) | |
setResult ($result) | |
![]() | |
toArray () | |
A command object that contains parameters that can be modified and accessed like an array and turned into an array
Definition at line 17 of file CommandInterface.php.
Guzzle\Service\Command\CommandInterface::execute | ( | ) |
Execute the command and return the result
CommandException | if a client has not been associated with the command |
Implemented in Guzzle\Service\Command\AbstractCommand.
Guzzle\Service\Command\CommandInterface::getClient | ( | ) |
Get the client object that will execute the command
Implemented in Guzzle\Service\Command\AbstractCommand.
Referenced by Guzzle\Service\Command\DefaultRequestSerializer\createRequest(), and Guzzle\Service\Command\OperationResponseParser\parseClass().
Guzzle\Service\Command\CommandInterface::getName | ( | ) |
Get the short form name of the command
Implemented in Guzzle\Service\Command\AbstractCommand.
Referenced by Guzzle\Service\Resource\AbstractResourceIteratorFactory\build(), Guzzle\Service\Resource\CompositeResourceIteratorFactory\build(), Guzzle\Service\Resource\MapResourceIteratorFactory\getClassName(), and Guzzle\Service\Resource\ResourceIteratorClassFactory\getClassName().
Guzzle\Service\Command\CommandInterface::getOperation | ( | ) |
Get the API operation information about the command
Implemented in Guzzle\Service\Command\AbstractCommand.
Referenced by Guzzle\Service\Command\DefaultRequestSerializer\createRequest(), Guzzle\Service\Command\OperationResponseParser\handleParsing(), Guzzle\Service\Command\OperationResponseParser\parseClass(), and Guzzle\Service\Command\DefaultRequestSerializer\prepare().
Guzzle\Service\Command\CommandInterface::getRequest | ( | ) |
Get the request object associated with the command
CommandException | if the command has not been executed |
Implemented in Guzzle\Service\Command\AbstractCommand.
Referenced by Guzzle\Service\Exception\CommandTransferException\getExceptionForFailedCommand(), and Guzzle\Service\Command\DefaultResponseParser\parse().
Guzzle\Service\Command\CommandInterface::getRequestHeaders | ( | ) |
Get the object that manages the request headers that will be set on any outbound requests from the command
Implemented in Guzzle\Service\Command\AbstractCommand.
Guzzle\Service\Command\CommandInterface::getResponse | ( | ) |
Get the response object associated with the command
CommandException | if the command has not been executed |
Implemented in Guzzle\Service\Command\AbstractCommand.
Referenced by Guzzle\Service\Command\LocationVisitor\Response\XmlVisitor\before(), and Guzzle\Service\Command\LocationVisitor\Response\JsonVisitor\before().
Guzzle\Service\Command\CommandInterface::getResult | ( | ) |
Get the result of the command
CommandException | if the command has not been executed |
Implemented in Guzzle\Service\Command\AbstractCommand.
Guzzle\Service\Command\CommandInterface::isExecuted | ( | ) |
Returns TRUE if the command has been executed
Implemented in Guzzle\Service\Command\AbstractCommand.
Guzzle\Service\Command\CommandInterface::isPrepared | ( | ) |
Returns TRUE if the command has been prepared for executing
Implemented in Guzzle\Service\Command\AbstractCommand.
Guzzle\Service\Command\CommandInterface::prepare | ( | ) |
Prepare the command for executing and create a request object.
CommandException | if a client object has not been set previously or in the prepare() |
Implemented in Guzzle\Service\Command\AbstractCommand.
Guzzle\Service\Command\CommandInterface::setClient | ( | ClientInterface | $client | ) |
Set the client object that will execute the command
ClientInterface | $client | The client object that will execute the command |
Implemented in Guzzle\Service\Command\AbstractCommand.
Referenced by Guzzle\Service\Client\prepareCommand().
Guzzle\Service\Command\CommandInterface::setOnComplete | ( | $callable | ) |
Specify a callable to execute when the command completes
mixed | $callable | Callable to execute when the command completes. The callable must accept a { |
InvalidArgumentException |
Implemented in Guzzle\Service\Command\AbstractCommand.
Guzzle\Service\Command\CommandInterface::setResult | ( | $result | ) |
Set the result of the command
mixed | $result | Result to set |
Implemented in Guzzle\Service\Command\AbstractCommand.