PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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/*
 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 */
19interface 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}