AddressEncoder.php 595 B

12345678910111213141516171819202122232425
  1. <?php
  2. /*
  3. * This file is part of SwiftMailer.
  4. * (c) 2018 Christian Schmidt
  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. * Email address encoder.
  11. *
  12. * @author Christian Schmidt
  13. */
  14. interface Swift_AddressEncoder
  15. {
  16. /**
  17. * Encodes an email address.
  18. *
  19. * @throws Swift_AddressEncoderException if the email cannot be represented in
  20. * the encoding implemented by this class
  21. */
  22. public function encodeString(string $address): string;
  23. }