PageRenderTime 20ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/framework/vendor/swift/lib/classes/Swift/Transport/SmtpAgent.php

http://zoop.googlecode.com/
PHP | 36 lines | 6 code | 5 blank | 25 comment | 0 complexity | 2805edcf6a1b48bb6ae2c98ca2bbdcb5 MD5 | raw file
 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 */
17interface 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}