Ingen beskrivning

EncoderInterface.php 717B

123456789101112131415161718192021222324252627
  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. }