Added feature #15998: Create a new API to send mails based on SwiftMailer to replace...
[Packages/TYPO3.CMS.git] / typo3 / contrib / swiftmailer / classes / Swift / Plugins / Decorator / Replacements.php
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 /**
23 * Return the array of replacements for $address.
24 *
25 * This method is invoked once for every single recipient of a message.
26 *
27 * If no replacements can be found, an empty value (NULL) should be returned
28 * and no replacements will then be made on the message.
29 *
30 * @param string $address
31 *
32 * @return array
33 */
34 public function getReplacementsFor($address);
35
36 }