vendor/swiftmailer/lib/classes/Swift/Transport/SmtpAgent.php
changeset 0 7f95f8617b0b
equal deleted inserted replaced
-1:000000000000 0:7f95f8617b0b
       
     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  * Wraps an IoBuffer to send/receive SMTP commands/responses.
       
    13  * @package Swift
       
    14  * @subpackage Transport
       
    15  * @author Chris Corbyn
       
    16  */
       
    17 interface Swift_Transport_SmtpAgent
       
    18 {
       
    19   
       
    20   /**
       
    21    * Get the IoBuffer where read/writes are occurring.
       
    22    * @return Swift_Transport_IoBuffer
       
    23    */
       
    24   public function getBuffer();
       
    25   
       
    26   /**
       
    27    * Run a command against the buffer, expecting the given response codes.
       
    28    * If no response codes are given, the response will not be validated.
       
    29    * If codes are given, an exception will be thrown on an invalid response.
       
    30    * @param string $command
       
    31    * @param int[] $codes
       
    32    * @param string[] &$failures
       
    33    */
       
    34   public function executeCommand($command, $codes = array(), &$failures = null);
       
    35   
       
    36 }