Menu

## Statement
in package
implements StatementInterface

Statement.php : 18

Represents an prepared AQL Statement

##### Tags

author

  Lucas S. Vieira

### Table of Contents

#### Interfaces

StatementInterface
  StatementInterface

#### Methods

__construct() : mixed
  Statement constructor.
__toString() : string
  String representation of query
bindValue() : bool
  Binds a value to specified parameter name.
getBindVars() : array<string|int, mixed>
  Get the bind vars
getQuery() : string
  Returns the query string
hasAliases() : bool
  If the query has some alias on it to receive an value after through binding
toAql() : string
  'Resolves' the query, returning the string after bind all params and values

### Methods

#### __construct()

Statement.php : 75

Statement constructor.

`public __construct(string $query) : mixed`

##### Parameters

$query : string

  AQL query string.

#### __toString()

Statement.php : 88

String representation of query

`public __toString() : string`

##### Return values

string

#### bindValue()

Statement.php : 103

Binds a value to specified parameter name.

`public bindValue(string $parameter, mixed $value) : bool`

##### Parameters

$parameter : string

  Parameter name.

$value : mixed

  Value for parameter.

##### Tags

throws
  InvalidParameterException

##### Return values

bool —

True if the parameter has an alias on query string. False otherwise.

#### getBindVars()

Statement.php : 138

Get the bind vars

`public getBindVars() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getQuery()

Statement.php : 128

Returns the query string

`public getQuery() : string`

##### Return values

string

#### hasAliases()

Statement.php : 118

If the query has some alias on it to receive an value after through binding

`public hasAliases() : bool`

##### Return values

bool

#### toAql()

Statement.php : 150

'Resolves' the query, returning the string after bind all params and values

`public toAql() : string`

##### Tags

throws
  StatementException

##### Return values

string

## Search results