Pop3Connection.php 766B

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