Class ContactCollection

Class ContactCollection

Handles collection of EmailContact objects.

AbstractCollection implements IteratorAggregate, Countable
ContactCollection implements ContactCollectionInterface

Methods summary

public add( EmailContactInterface $contact )

Adds a new contact into the collection.

public remove( EmailContactInterface $contact )

Removes a contact from collection.

public clear( void )

Removes all contacts of collection.

protected _getValidType( void ) : string

Returns the type of the collection items.

Methods inherited from AbstractCollection

__construct(), _add(), _getExceptionText(), _itemIsValid(), count(), getArray(), getItem(), getIterator(), isEmpty()

Properties summary

Properties inherited from AbstractCollection

$collectionContentArray