The HH\Collection<Te> interface

This page is a quick reference for people already familiar with the class. If this is new to you, we strongly recommend reading the introductory guides first:

Collection is the primary collection interface for mutable collections.

Assuming you want the ability to clear out your collection, you would implement this (or a child of this) interface. Otherwise, you can implement OutputCollection only. If your collection to be immutable, implement ConstCollection only instead.

Interface synopsis

interface Collection implements ConstCollection, OutputCollection {...}

  • ->clear()
    Removes all items from the collection.