/framework/vendor/swift/lib/classes/Swift/Encoder.php

http://zoop.googlecode.com/ · PHP · 32 lines · 6 code · 5 blank · 21 comment · 0 complexity · fbb03397fc9ca4c14a12dc387e491c26 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. //@require 'Swift/Mime/CharsetObserver.php';
  10. /**
  11. * Interface for all Encoder schemes.
  12. * @package Swift
  13. * @subpackage Encoder
  14. * @author Chris Corbyn
  15. */
  16. interface Swift_Encoder extends Swift_Mime_CharsetObserver
  17. {
  18. /**
  19. * Encode a given string to produce an encoded string.
  20. * @param string $string
  21. * @param int $firstLineOffset if first line needs to be shorter
  22. * @param int $maxLineLength - 0 indicates the default length for this encoding
  23. * @return string
  24. */
  25. public function encodeString($string, $firstLineOffset = 0,
  26. $maxLineLength = 0);
  27. }