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 customization of Messages on-the-fly.
13: *
14: * @package Swift
15: * @subpackage Plugins
16: *
17: * @author Chris Corbyn
18: */
19: interface Swift_Plugins_Decorator_Replacements
20: {
21: /**
22: * Return the array of replacements for $address.
23: *
24: * This method is invoked once for every single recipient of a message.
25: *
26: * If no replacements can be found, an empty value (NULL) should be returned
27: * and no replacements will then be made on the message.
28: *
29: * @param string $address
30: *
31: * @return array
32: */
33: public function getReplacementsFor($address);
34: }
35: