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