setParameters

Set parameters that will be included in the call to the eContext API.

Description

public Text Text::setParameters(array $parameters = array())

Parameters

$parameters
A list of key=>value pairs describing Parameters to be included with the eContext API call.

Return Values

Returns the eContext\Classify\Text object for method chaining

Examples

Example #1

Set "flags" parameter to true

$client = new eContext\Client(ECONTEXT_USERNAME, ECONTEXT_PASSWORD);
$classify = new eContext\Classify\Text($client);
$classify->setParameters(['flags' => true]);