\GuzzleHttp\CommandCommandInterface

A command object encapsulates the input parameters used to control the creation of a HTTP request and processing of a HTTP response.

Using the getParams() method will return the input parameters of the command as an associative array.

Summary

Methods
Constants
toArray()
getHandlerStack()
getName()
hasParam()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

toArray()

toArray() : array

Get the array representation of an object

Returns

array —

getHandlerStack()

getHandlerStack() : \GuzzleHttp\HandlerStack

Retrieves the handler stack specific to this command's execution.

This can be used to add middleware that is specific to the command instance.

Returns

\GuzzleHttp\HandlerStack —

getName()

getName() : string

Get the name of the command.

Returns

string —

hasParam()

hasParam(string  $name) : bool

Check if the command has a parameter by name.

Parameters

string $name

Name of the parameter to check.

Returns

bool —