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: * Interface for all Encoder schemes.
13: * @package Swift
14: * @subpackage Encoder
15: * @author Chris Corbyn
16: */
17: interface Swift_Encoder extends Swift_Mime_CharsetObserver
18: {
19: /**
20: * Encode a given string to produce an encoded string.
21: * @param string $string
22: * @param int $firstLineOffset if first line needs to be shorter
23: * @param int $maxLineLength - 0 indicates the default length for this encoding
24: * @return string
25: */
26: public function encodeString($string, $firstLineOffset = 0, $maxLineLength = 0);
27: }
28: