class Collection extends SimpleCollection implements CollectionInterface

Class Collection.

Methods

getIterator()

No description

mixed[]
toArray()

No description

mixed
remove( mixed $key)

No description

null|mixed
get( mixed $key)

No description

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

No description

$this
clear()

No description

int
count()

No description

bool
isEmpty()

No description

__construct( array $elements = array())

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 = ARRAY_FILTER_USE_BOTH)

No description

filterByKeys( Closure $predicate)

No description

bool
forAll( Closure $predicate)

No description

partition( Closure $predicate)

No description

string
__toString()

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 SimpleCollection at line line 27
ArrayIterator getIterator()

Return Value

ArrayIterator

in SimpleCollection at line line 35
mixed[] toArray()

Return Value

mixed[]

in SimpleCollection at line line 45
mixed remove( mixed $key)

Parameters

mixed $key

Return Value

mixed

in SimpleCollection at line line 62
null|mixed get( mixed $key)

Parameters

mixed $key

Return Value

null|mixed

in SimpleCollection at line line 77
$this set( mixed $key, mixed $element)

Parameters

mixed $key
mixed $element

Return Value

$this

in SimpleCollection at line line 87
$this clear()

Return Value

$this

in SimpleCollection at line line 97
int count()

Return Value

int

in SimpleCollection at line line 105
bool isEmpty()

Return Value

bool

at line line 23
__construct( array $elements = array())

Parameters

array $elements

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

Parameters

array $elements

Return Value

CollectionInterface

at line line 43
bool containsKey( mixed $key)

Parameters

mixed $key

Return Value

bool

at line line 53
bool contains( mixed $element)

Parameters

mixed $element

Return Value

bool

at line line 63
bool removeElement( mixed $element)

Parameters

mixed $element

Return Value

bool

at line line 79
bool offsetExists( mixed $offset)

Parameters

mixed $offset

Return Value

bool

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

Parameters

mixed $offset

Return Value

null|mixed

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

Parameters

mixed $offset
mixed $value

Return Value

$this

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

Parameters

mixed $offset

Return Value

$this

at line line 124
bool equitable( CollectionInterface $collections)

Parameters

CollectionInterface $collections

Return Value

bool

at line line 146
bool exists( Closure $predicate)

Parameters

Closure $predicate

Return Value

bool

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

Parameters

mixed $element

Return Value

null|mixed

at line line 174
mixed[] getKeys()

Return Value

mixed[]

at line line 182
mixed[] getValues()

Return Value

mixed[]

at line line 192
int instancesOf( mixed $search)

Parameters

mixed $search

Return Value

int

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

Parameters

mixed $element

Return Value

$this

at line line 219
CollectionInterface map( Closure $closure)

Parameters

Closure $closure

Return Value

CollectionInterface

at line line 230
CollectionInterface filter( Closure $predicate, int $flag = ARRAY_FILTER_USE_BOTH)

Parameters

Closure $predicate
int $flag

Return Value

CollectionInterface

at line line 242
CollectionInterface filterByKeys( Closure $predicate)

Parameters

Closure $predicate

Return Value

CollectionInterface

at line line 252
bool forAll( Closure $predicate)

Parameters

Closure $predicate

Return Value

bool

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

Parameters

Closure $predicate

Return Value

CollectionInterface[]

at line line 286
string __toString()

Return Value

string

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

Parameters

int $offset
null|int $length

Return Value

CollectionInterface

at line line 309
CollectionInterface merge( CollectionInterface $collections)

Parameters

CollectionInterface $collections

Return Value

CollectionInterface

at line line 328
CollectionInterface reverse()

Return Value

CollectionInterface

at line line 336
CollectionInterface shuffle()

Return Value

CollectionInterface

at line line 355
CollectionInterface sort( Closure $predicate)

Parameters

Closure $predicate

Return Value

CollectionInterface

at line line 369
CollectionInterface sortByKeys( Closure $predicate)

Parameters

Closure $predicate

Return Value

CollectionInterface