interface CollectionInterface implements SimpleCollectionInterface, ArrayAccess

Class CollectionInterface.

Methods

mixed[]
toArray()

No description

int
count()

No description

bool
isEmpty()

No description

$this
clear()

No description

mixed
remove( mixed $key)

No description

null|mixed
get( mixed $key)

No description

$this
set( mixed $key, mixed $element)

No description

create( array $elements = array())

No description

bool
containsKey( mixed $key)

No description

bool
contains( mixed $element)

No description

bool
removeElement( mixed $element)

No description

bool
offsetExists( mixed $offset)

No description

null|mixed
offsetGet( mixed $offset)

No description

$this
offsetSet( mixed $offset, mixed $value)

No description

$this
offsetUnset( mixed $offset)

No description

bool
equitable( CollectionInterface $collections)

No description

bool
exists( Closure $predicate)

No description

null|mixed
indexOf( mixed $element)

No description

mixed[]
getKeys()

No description

mixed[]
getValues()

No description

int
instancesOf( mixed $search)

No description

$this
add( mixed $element)

No description

map( Closure $closure)

No description

filter( Closure $predicate, int $flag)

No description

filterByKeys( Closure $predicate)

No description

bool
forAll( Closure $predicate)

No description

partition( Closure $predicate)

No description

slice( int $offset, null|int $length = null)

No description

merge( CollectionInterface $collections)

No description

reverse()

No description

shuffle()

No description

sort( Closure $predicate)

No description

sortByKeys( Closure $predicate)

No description

Details

in SimpleCollectionInterface at line line 22
mixed[] toArray()

Return Value

mixed[]

in SimpleCollectionInterface at line line 27
int count()

Return Value

int

in SimpleCollectionInterface at line line 32
bool isEmpty()

Return Value

bool

in SimpleCollectionInterface at line line 37
$this clear()

Return Value

$this

in SimpleCollectionInterface at line line 44
mixed remove( mixed $key)

Parameters

mixed $key

Return Value

mixed

in SimpleCollectionInterface at line line 51
null|mixed get( mixed $key)

Parameters

mixed $key

Return Value

null|mixed

in SimpleCollectionInterface at line line 59
$this set( mixed $key, mixed $element)

Parameters

mixed $key
mixed $element

Return Value

$this

in SimpleCollectionInterface at line line 64
ArrayIterator getIterator()

Return Value

ArrayIterator

at line line 24
static CollectionInterface create( array $elements = array())

Parameters

array $elements

Return Value

CollectionInterface

at line line 31
bool containsKey( mixed $key)

Parameters

mixed $key

Return Value

bool

at line line 38
bool contains( mixed $element)

Parameters

mixed $element

Return Value

bool

at line line 45
bool removeElement( mixed $element)

Parameters

mixed $element

Return Value

bool

at line line 52
bool offsetExists( mixed $offset)

Parameters

mixed $offset

Return Value

bool

at line line 59
null|mixed offsetGet( mixed $offset)

Parameters

mixed $offset

Return Value

null|mixed

at line line 67
$this offsetSet( mixed $offset, mixed $value)

Parameters

mixed $offset
mixed $value

Return Value

$this

at line line 74
$this offsetUnset( mixed $offset)

Parameters

mixed $offset

Return Value

$this

at line line 81
bool equitable( CollectionInterface $collections)

Parameters

CollectionInterface $collections

Return Value

bool

at line line 88
bool exists( Closure $predicate)

Parameters

Closure $predicate

Return Value

bool

at line line 95
null|mixed indexOf( mixed $element)

Parameters

mixed $element

Return Value

null|mixed

at line line 100
mixed[] getKeys()

Return Value

mixed[]

at line line 105
mixed[] getValues()

Return Value

mixed[]

at line line 112
int instancesOf( mixed $search)

Parameters

mixed $search

Return Value

int

at line line 119
$this add( mixed $element)

Parameters

mixed $element

Return Value

$this

at line line 126
CollectionInterface map( Closure $closure)

Parameters

Closure $closure

Return Value

CollectionInterface

at line line 134
CollectionInterface filter( Closure $predicate, int $flag)

Parameters

Closure $predicate
int $flag

Return Value

CollectionInterface

at line line 141
CollectionInterface filterByKeys( Closure $predicate)

Parameters

Closure $predicate

Return Value

CollectionInterface

at line line 148
bool forAll( Closure $predicate)

Parameters

Closure $predicate

Return Value

bool

at line line 155
CollectionInterface[] partition( Closure $predicate)

Parameters

Closure $predicate

Return Value

CollectionInterface[]

at line line 163
CollectionInterface slice( int $offset, null|int $length = null)

Parameters

int $offset
null|int $length

Return Value

CollectionInterface

at line line 170
CollectionInterface merge( CollectionInterface $collections)

Parameters

CollectionInterface $collections

Return Value

CollectionInterface

at line line 175
CollectionInterface reverse()

Return Value

CollectionInterface

at line line 180
CollectionInterface shuffle()

Return Value

CollectionInterface

at line line 187
CollectionInterface sort( Closure $predicate)

Parameters

Closure $predicate

Return Value

CollectionInterface

at line line 194
CollectionInterface sortByKeys( Closure $predicate)

Parameters

Closure $predicate

Return Value

CollectionInterface