A simple container for bind variables

This container also handles validation of the bind values.

package ArangoDBClient
since 0.2

 Methods

Get the value of a bind variable with a specific name

get(string $name) : mixed

Parameters

$name

string
  • name of bind variable

Returns

mixed- value of bind variable

Get all registered bind variables

getAll() : array

Returns

array- array of all registered bind variables

Get the number of bind variables registered

getCount() : integer

Returns

integer- number of bind variables registered

Set the value of a single bind variable or set all bind variables at once

set(string|integer|array $name, string $value = null) : void

This will also validate the bind values.

Allowed value types for bind parameters are string, int, double, bool and array. Arrays must not contain any other than these types.

Parameters

$name

stringintegerarray
  • name of bind variable OR an array with all bind variables

$value

string
  • value for bind variable

Exceptions

\ArangoDBClient\ClientException

 Properties

 

Current bind values

$_values : array

Default

array()