Свойство | Type | Description | |
---|---|---|---|
$arguments | array | Arguments | |
$argumentsType | integer | Tells the argument types for this command | |
$availableArguments | array | All available optional arguments must be defined here. If they are processed by the method toArguments(), the $this->options variable will automatically provide the default values. | |
$options | array | Provide default argument values. If the value for the argument is not provided, is null, or is false, the option will not be used. | |
$responseHandler | string | Tells which class handles the response |
Méthode | Description | |
---|---|---|
getArguments ( ) : array | Get processed arguments for command | |
getCommand ( ) : string | Get command | |
isBlocking ( ) : boolean | Tells if this command blocks while waiting for a response, to avoid being affected by connection timeouts. | |
parse ( mixed $body ) : mixed | Parse response | |
setArguments ( array $arguments ) : void | Set arguments for the command |
Méthode | Description | |
---|---|---|
toArguments ( array $options ) : array | Build command arguments out of options |
public getArguments ( ) : array | ||
Résultat | array | Arguments |
abstract public getCommand ( ) : string | ||
Résultat | string | Command |
public isBlocking ( ) : boolean | ||
Résultat | boolean | If true, this command blocks |
public setArguments ( array $arguments ) : void | ||
$arguments | array | Arguments |
Résultat | void |
protected toArguments ( array $options ) : array | ||
$options | array | Command options |
Résultat | array | Command arguments |
protected int $argumentsType | ||
Résultat | integer |
protected array $availableArguments | ||
Résultat | array |
protected array $options | ||
Résultat | array |
protected string $responseHandler | ||
Résultat | string |