Class AttachmentCollection

Class AttachmentCollection

Handles the attachment collections of an Email.

AbstractCollection implements IteratorAggregate, Countable
AttachmentCollection implements AttachmentCollectionInterface

Methods summary

public add( EmailAttachmentInterface $attachment )

Adds a new attachment to the collection.

public remove( EmailAttachmentInterface $attachment )

Removes an attachment from collection.

public clear( void )

Removes all attachments 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