API Documentation (v0.9.0-alpha)

Avolutions\Collection\CollectionTrait

A default implementation of the CollectionInterface

Properties

Property Visibility Type Description
$items public array The items of the Collection.

Methods

Method Visibility Description
count() public Returns the number of items in the Collection.
getAll() public Returns all items of the Collection.

Property Details

$items

The items of the Collection.

public array<string|int, mixed> $items = []

Method Details

count()

Returns the number of items in the Collection.

public count() : int
Return values
int Returns the number of items in the Collection.
getAll()

Returns all items of the Collection.

public getAll() : array<string|int, mixed>
Return values
array<string|int, mixed> Returns all items of the Collection.