Menu

## BindContainer extends ArrayList
in package

BindContainer.php : 16

Manager parameters/values binding to statements

##### Tags

author

  Lucas S. Vieira

### Table of Contents

#### Methods

__construct() : mixed
  BindContainer constructor.
__toString() : false|string
  String representation of ArrayList
append() : void
  Appends a list to another.
count() : int
  Count elements of an object
current() : mixed
  Return the current element
first() : mixed
  Get the first value of list
get() : mixed
  Get a value by its key
getAll() : array<string|int, mixed>
  Get the stored vars
has() : bool
  Check if a given key exists on list
jsonSerialize() : array<string|int, mixed>|mixed
  Return a JSON representation of list
key() : mixed
  Return the key of the current element
last() : mixed
  Get the last value of list
next() : void
  Move forward to next element
push() : void
  Add a value to list
put() : void
  Add validation to value being set.
remove() : mixed
  Remove a value by it's key on list
rewind() : void
  Rewind the Iterator to the first element
toArray() : array<string|int, mixed>
  Return an array representation for list
valid() : bool
  Checks if current position is valid
values() : array<string|int, mixed>
  Return an array with list values only

### Methods

#### __construct()

BindContainer.php : 28

BindContainer constructor.

`public __construct() : mixed`

#### __toString()

ArrayList.php : 43

String representation of ArrayList

`public __toString() : false|string`

##### Return values

false|string

#### append()

ArrayList.php : 153

Appends a list to another.

`public append(ListInterface $list) : void`

##### Parameters

$list : ListInterface

  ListInterface object to append.

#### count()

ArrayList.php : 221

Count elements of an object

`public count() : int`

##### Return values

int

#### current()

ArrayList.php : 175

Return the current element

`public current() : mixed`

#### first()

ArrayList.php : 53

Get the first value of list

`public first() : mixed`

#### get()

ArrayList.php : 76

Get a value by its key

`public get(int|string $key) : mixed`

##### Parameters

$key : int|string

  Key to verify on list.

#### getAll()

BindContainer.php : 60

Get the stored vars

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

##### Return values

array<string|int, mixed>

#### has()

ArrayList.php : 112

Check if a given key exists on list

`public has( $key) : bool`

##### Parameters

$key :

  Key to verify on list.

##### Return values

bool —

True if key exists, false otherwise.

#### jsonSerialize()

ArrayList.php : 165

Return a JSON representation of list

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

##### Return values

array<string|int, mixed>|mixed

#### key()

ArrayList.php : 193

Return the key of the current element

`public key() : mixed`

#### last()

ArrayList.php : 64

Get the last value of list

`public last() : mixed`

#### next()

ArrayList.php : 183

Move forward to next element

`public next() : void`

#### push()

ArrayList.php : 90

Add a value to list

`public push(mixed $value) : void`

##### Parameters

$value : mixed

  Value to add.

#### put()

BindContainer.php : 42

Add validation to value being set.

`public put(int|string $key, mixed $value) : void`

All values must be primitives data types

##### Parameters

$key : int|string
$value : mixed

##### Tags

throws
  InvalidParameterException

#### remove()

ArrayList.php : 123

Remove a value by it's key on list

`public remove( $key) : mixed`

##### Parameters

$key :

  Key to remove from list.

#### rewind()

ArrayList.php : 211

Rewind the Iterator to the first element

`public rewind() : void`

#### toArray()

ArrayList.php : 133

Return an array representation for list

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

##### Return values

array<string|int, mixed>

#### valid()

ArrayList.php : 203

Checks if current position is valid

`public valid() : bool`

##### Return values

bool

#### values()

ArrayList.php : 143

Return an array with list values only

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

##### Return values

array<string|int, mixed>

## Search results