EncoderInterface.php 717 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Mime\Encoder;
  11. /**
  12. * @author Chris Corbyn
  13. */
  14. interface EncoderInterface
  15. {
  16. /**
  17. * Encode a given string to produce an encoded string.
  18. *
  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. public function encodeString(string $string, ?string $charset = 'utf-8', int $firstLineOffset = 0, int $maxLineLength = 0): string;
  23. }