Command
in package
implements
CommandInterface
Uses
HasDataTrait
AWS command object.
Table of Contents
Interfaces
- CommandInterface
- A command object encapsulates the input parameters used to control the creation of a HTTP request and processing of a HTTP response.
Methods
- __clone() : mixed
- __construct() : mixed
- Accepts an associative array of command options, including:
- count() : int
- get() : mixed
- getAuthSchemes() : mixed
- Get auth schemes added to command as required for endpoint resolution
- getHandlerList() : HandlerList
- Get the handler list used to transfer the command.
- getIterator() : Traversable
- getName() : string
- Get the name of the command
- hasParam() : bool
- Check if the command has a parameter by name.
- offsetExists() : bool
- offsetGet() : mixed|null
- This method returns a reference to the variable to allow for indirect array modification (e.g., $foo['bar']['baz'] = 'qux').
- offsetSet() : void
- offsetUnset() : void
- toArray() : mixed
Methods
__clone()
public
__clone() : mixed
__construct()
Accepts an associative array of command options, including:
public
__construct(string $name[, array<string|int, mixed> $args = [] ][, HandlerList $list = null ][, MetricsBuilder|null $metricsBuilder = null ]) : mixed
- @http: (array) Associative array of transfer options.
Parameters
- $name : string
-
Name of the command
- $args : array<string|int, mixed> = []
-
Arguments to pass to the command
- $list : HandlerList = null
-
Handler list
- $metricsBuilder : MetricsBuilder|null = null
count()
public
count() : int
Return values
intget()
public
get(mixed $name) : mixed
Parameters
- $name : mixed
Tags
getAuthSchemes()
Get auth schemes added to command as required for endpoint resolution
public
getAuthSchemes() : mixed
Tags
getHandlerList()
Get the handler list used to transfer the command.
public
getHandlerList() : HandlerList
Return values
HandlerListgetIterator()
public
getIterator() : Traversable
Return values
TraversablegetName()
Get the name of the command
public
getName() : string
Return values
stringhasParam()
Check if the command has a parameter by name.
public
hasParam(mixed $name) : bool
Parameters
- $name : mixed
-
Name of the parameter to check
Return values
booloffsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
This method returns a reference to the variable to allow for indirect array modification (e.g., $foo['bar']['baz'] = 'qux').
public
& offsetGet( $offset) : mixed|null
Parameters
Return values
mixed|nulloffsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
toArray()
public
toArray() : mixed