Encoder.php 734 B

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