Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

SDK for PHP 3.x

CommandInterface extends ArrayAccess, Countable, IteratorAggregate
in

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

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

Table of Contents

Methods

getHandlerList()  : HandlerList
Get the handler list used to transfer the command.
getName()  : string
Get the name of the command
hasParam()  : bool
Check if the command has a parameter by name.
toArray()  : array<string|int, mixed>
Converts the command parameters to an array

Methods

getHandlerList()

Get the handler list used to transfer the command.

public getHandlerList() : HandlerList
Return values
HandlerList

getName()

Get the name of the command

public getName() : string
Return values
string

hasParam()

Check if the command has a parameter by name.

public hasParam(string $name) : bool
Parameters
$name : string

Name of the parameter to check

Return values
bool

toArray()

Converts the command parameters to an array

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page