Pop3Connection.php 722 B

12345678910111213141516171819202122232425262728293031
  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. * Pop3Connection interface for connecting and disconnecting to a POP3 host.
  11. *
  12. * @author Chris Corbyn
  13. */
  14. interface Swift_Plugins_Pop_Pop3Connection
  15. {
  16. /**
  17. * Connect to the POP3 host and throw an Exception if it fails.
  18. *
  19. * @throws Swift_Plugins_Pop_Pop3Exception
  20. */
  21. public function connect();
  22. /**
  23. * Disconnect from the POP3 host and throw an Exception if it fails.
  24. *
  25. * @throws Swift_Plugins_Pop_Pop3Exception
  26. */
  27. public function disconnect();
  28. }