class ConditionCollection implements Iterator, Countable, ArrayAccess

Manage a set of ConditionInterface

Methods

mixed
current()

(PHP 5 >= 5.0.0) Return the current element

void
next()

(PHP 5 >= 5.0.0) Move forward to next element

mixed
key()

(PHP 5 >= 5.0.0) Return the key of the current element

boolean
valid()

(PHP 5 >= 5.0.0) Checks if current position is valid

void
rewind()

(PHP 5 >= 5.0.0) Rewind the Iterator to the first element

int
count()

(PHP 5 >= 5.1.0) Count elements of an object

boolean
offsetExists( mixed $offset)

(PHP 5 >= 5.0.0) Whether a offset exists

mixed
offsetGet( mixed $offset)

(PHP 5 >= 5.0.0) Offset to retrieve

void
offsetSet( mixed $offset, mixed $value)

(PHP 5 >= 5.0.0) Offset to set

void
offsetUnset( mixed $offset)

(PHP 5 >= 5.0.0) Offset to unset

string
__toString()

Allow to compare 2 set of conditions

Details

at line 39
mixed current()

(PHP 5 >= 5.0.0) Return the current element

Return Value

mixed Can return any type.

at line 53
void next()

(PHP 5 >= 5.0.0) Move forward to next element

Return Value

void Any returned value is ignored.

at line 65
mixed key()

(PHP 5 >= 5.0.0) Return the key of the current element

Return Value

mixed scalar on success, or null on failure.

at line 80
boolean valid()

(PHP 5 >= 5.0.0) Checks if current position is valid

Return Value

boolean The return value will be casted to boolean and then evaluated. Returns true on success or false on failure.

at line 95
void rewind()

(PHP 5 >= 5.0.0) Rewind the Iterator to the first element

Return Value

void Any returned value is ignored.

at line 108
int count()

(PHP 5 >= 5.1.0) Count elements of an object

Return Value

int The custom count as an integer. The return value is cast to an integer.

at line 123
boolean offsetExists( mixed $offset)

(PHP 5 >= 5.0.0) Whether a offset exists

Parameters

mixed $offset An offset to check for.

Return Value

boolean true on success or false on failure. The return value will be casted to boolean if non-boolean was returned.

at line 137
mixed offsetGet( mixed $offset)

(PHP 5 >= 5.0.0) Offset to retrieve

Parameters

mixed $offset The offset to retrieve.

Return Value

mixed Can return all value types.

at line 153
void offsetSet( mixed $offset, mixed $value)

(PHP 5 >= 5.0.0) Offset to set

Parameters

mixed $offset The offset to assign the value to.
mixed $value The value to set.

Return Value

void

at line 171
void offsetUnset( mixed $offset)

(PHP 5 >= 5.0.0) Offset to unset

Parameters

mixed $offset The offset to unset.

Return Value

void

at line 181
string __toString()

Allow to compare 2 set of conditions

Return Value

string Jsoned data