interface Collection implements Iterator

Collection interface

Methods

void
clear()

Resets the collection

bool
contains(mixed $element)

Checks whether the given element is in this collection

bool
isEmpty()

Checks whether this collection is empty

int
size()

Returns the amount of elements in this collection

array
toArray()

Returns the collection as an array

Details

at line 23
void clear()

Resets the collection

Return Value

void

at line 39
bool contains(mixed $element)

Checks whether the given element is in this collection

Parameters

mixed $element

Return Value

bool

at line 30
bool isEmpty()

Checks whether this collection is empty

Return Value

bool

at line 46
int size()

Returns the amount of elements in this collection

Return Value

int

at line 53
array toArray()

Returns the collection as an array

Return Value

array