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: /**
12: * Allows StreamFilters to operate on a stream.
13: * @package Swift
14: * @author Chris Corbyn
15: */
16: interface Swift_Filterable
17: {
18: /**
19: * Add a new StreamFilter, referenced by $key.
20: * @param Swift_StreamFilter $filter
21: * @param string $key
22: */
23: public function addFilter(Swift_StreamFilter $filter, $key);
24:
25: /**
26: * Remove an existing filter using $key.
27: * @param string $key
28: */
29: public function removeFilter($key);
30: }
31: