Encoder.php 761B

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. * @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. * @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. * @return string
  23. */
  24. public function encodeString($string, $firstLineOffset = 0, $maxLineLength = 0);
  25. }