Pop3Connection.php 750B

12345678910111213141516171819202122232425262728293031323334353637
  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. * @package Swift
  13. * @subpackage Plugins
  14. *
  15. * @author Chris Corbyn
  16. */
  17. interface Swift_Plugins_Pop_Pop3Connection
  18. {
  19. /**
  20. * Connect to the POP3 host and throw an Exception if it fails.
  21. *
  22. * @throws Swift_Plugins_Pop_Pop3Exception
  23. */
  24. public function connect();
  25. /**
  26. * Disconnect from the POP3 host and throw an Exception if it fails.
  27. *
  28. * @throws Swift_Plugins_Pop_Pop3Exception
  29. */
  30. public function disconnect();
  31. }