/framework/vendor/swift/lib/classes/Swift/Filterable.php

http://zoop.googlecode.com/ · PHP · 34 lines · 6 code · 6 blank · 22 comment · 0 complexity · dd7814325dba036e001dae8b285b7eb5 MD5 · raw file

  1. <?php
  2. /*
  3. * This file is part of SwiftMailer.
  4. * (c) 2004-2009 Chris Corbyn
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. //@require 'Swift/StreamFilter.php';
  10. /**
  11. * Allows StreamFilters to operate on a stream.
  12. * @package Swift
  13. * @author Chris Corbyn
  14. */
  15. interface Swift_Filterable
  16. {
  17. /**
  18. * Add a new StreamFilter, referenced by $key.
  19. * @param Swift_StreamFilter $filter
  20. * @param string $key
  21. */
  22. public function addFilter(Swift_StreamFilter $filter, $key);
  23. /**
  24. * Remove an existing filter using $key.
  25. * @param string $key
  26. */
  27. public function removeFilter($key);
  28. }