/framework/vendor/swift/lib/classes/Swift/Filterable.php
PHP | 34 lines | 6 code | 6 blank | 22 comment | 0 complexity | dd7814325dba036e001dae8b285b7eb5 MD5 | raw file
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 */ 18interface 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}