\GuzzleHttp\CommandCommand

Default command implementation.

Summary

Methods
Properties
Constants
__toString()
__debugInfo()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
count()
getIterator()
toArray()
__construct()
getHandlerStack()
getName()
hasParam()
__clone()
No public properties found
No constants found
No protected methods found
$data
N/A
No private methods found
$name
$handlerStack
N/A

Properties

$data

$data : array

Type

array — Data stored in the collection.

$name

$name : string

Type

string

$handlerStack

$handlerStack : \GuzzleHttp\HandlerStack

Type

HandlerStack

Methods

__toString()

__toString() : mixed

Returns

mixed —

__debugInfo()

__debugInfo() : mixed

Returns

mixed —

offsetExists()

offsetExists(mixed  $offset) : mixed

Parameters

mixed $offset

Returns

mixed —

offsetGet()

offsetGet(mixed  $offset) : mixed

Parameters

mixed $offset

Returns

mixed —

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : mixed

Parameters

mixed $offset
mixed $value

Returns

mixed —

offsetUnset()

offsetUnset(mixed  $offset) : mixed

Parameters

mixed $offset

Returns

mixed —

count()

count() : mixed

Returns

mixed —

getIterator()

getIterator() : mixed

Returns

mixed —

toArray()

toArray() : mixed

Returns

mixed —

__construct()

__construct(string  $name, array  $args = [], \GuzzleHttp\HandlerStack  $handlerStack = null) : mixed

Parameters

string $name

Name of the command

array $args

Arguments to pass to the command

\GuzzleHttp\HandlerStack $handlerStack

Stack of middleware for the command

Returns

mixed —

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(mixed  $name) : bool

Check if the command has a parameter by name.

Parameters

mixed $name

Name of the parameter to check.

Returns

bool —

__clone()

__clone() : mixed

Returns

mixed —