/framework/vendor/swift/lib/classes/Swift/Plugins/Decorator/Replacements.php

http://zoop.googlecode.com/ · PHP · 36 lines · 5 code · 4 blank · 27 comment · 0 complexity · 678cbb7201252d38180fe848c2031fdc 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. /**
  10. * Allows customization of Messages on-the-fly.
  11. *
  12. * @package Swift
  13. * @subpackage Plugins
  14. *
  15. * @author Chris Corbyn
  16. */
  17. interface Swift_Plugins_Decorator_Replacements
  18. {
  19. /**
  20. * Return the array of replacements for $address.
  21. *
  22. * This method is invoked once for every single recipient of a message.
  23. *
  24. * If no replacements can be found, an empty value (NULL) should be returned
  25. * and no replacements will then be made on the message.
  26. *
  27. * @param string $address
  28. *
  29. * @return array
  30. */
  31. public function getReplacementsFor($address);
  32. }