Added feature #15998: Create a new API to send mails based on SwiftMailer to replace...
[Packages/TYPO3.CMS.git] / typo3 / contrib / swiftmailer / classes / Swift / Filterable.php
1 <?php
2
3 /*
4 * This file is part of SwiftMailer.
5 * (c) 2004-2009 Chris Corbyn
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11 //@require 'Swift/StreamFilter.php';
12
13 /**
14 * Allows StreamFilters to operate on a stream.
15 * @package Swift
16 * @author Chris Corbyn
17 */
18 interface Swift_Filterable
19 {
20
21 /**
22 * Add a new StreamFilter, referenced by $key.
23 * @param Swift_StreamFilter $filter
24 * @param string $key
25 */
26 public function addFilter(Swift_StreamFilter $filter, $key);
27
28 /**
29 * Remove an existing filter using $key.
30 * @param string $key
31 */
32 public function removeFilter($key);
33
34 }