Collection

Collection
implements Countable , IteratorAggregate , Sunrise\Collection\CollectionInterface , Traversable
Methods Summary
public
# __construct( iterable $items = array ( ) )
public
# add( $value )
{@inheritDoc}

Implementation of

public
# set( $key , $value )
{@inheritDoc}

Implementation of

public
# get( $key , $default = NULL )
{@inheritDoc}

Implementation of

public
# remove( $key , $default = NULL )
public
# exists( $key )
public
# contains( $value )
public
# update( array $items )
public
# upgrade( array $items )
public
# clear( )
public
# all( )
{@inheritDoc}

Implementation of

public
public
# count( )
Gets the number of items in the collection

Implementation of

public
# getIterator( )
Gets an external iterator

Implementation of

Properties Summary
protected array $items
Items of the collection
# array ( )