1 <?php
2 /* --------------------------------------------------------------
3 ContactCollectionInterface.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 ContactCollectionInterface
14 *
15 * @category System
16 * @package Email
17 * @subpackage Interfaces
18 */
19 interface ContactCollectionInterface
20 {
21 /**
22 * Adds a new contact into the collection.
23 *
24 * @param EmailContactInterface $contact E-Mail contact.
25 */
26 public function add(EmailContactInterface $contact);
27
28
29 /**
30 * Removes a contact from collection.
31 *
32 * @param EmailContactInterface $contact E-Mail contact.
33 */
34 public function remove(EmailContactInterface $contact);
35
36
37 /**
38 * Removes all contacts of collection.
39 */
40 public function clear();
41 }