Encoder.php 734 B

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