Encoder.php 775B

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