1 <?php
2 /* --------------------------------------------------------------
3 AttachmentCollectionInterface.inc.php 2015-02-15 gm
4 Gambio GmbH
5 http://www.gambio.de
6 Copyright (c) 2015 Gambio GmbH
7 Released under the GNU General Public License (Version 2)
8 [http://www.gnu.org/licenses/gpl-2.0.html]
9 --------------------------------------------------------------
10 */
11
12 /**
13 * Interface AttachmentCollectionInterface
14 *
15 * @category System
16 * @package Email
17 * @subpackage Interfaces
18 */
19 interface AttachmentCollectionInterface
20 {
21 /**
22 * Adds a new attachment to the collection.
23 *
24 * @param EmailAttachmentInterface $attachment E-Mail attachment.
25 */
26 public function add(EmailAttachmentInterface $attachment);
27
28
29 /**
30 * Removes an attachment from collection.
31 *
32 * @param EmailAttachmentInterface $attachment E-Mail attachment.
33 */
34 public function remove(EmailAttachmentInterface $attachment);
35
36
37 /**
38 * Removes all attachments of collection.
39 */
40 public function clear();
41 }