1<?php 2 3/* 4 * This file is part of SwiftMailer. 5 * (c) 2004-2009 Chris Corbyn 6 * 7 * For the full copyright and license information, please view the LICENSE 8 * file that was distributed with this source code. 9 */ 10 11/** 12 * Pop3Connection interface for connecting and disconnecting to a POP3 host. 13 * 14 * @author Chris Corbyn 15 */ 16interface 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 /** 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} 32