|
TYPO3 API
SVNRelease
|
00001 <?php 00002 00003 /* 00004 * This file is part of SwiftMailer. 00005 * (c) 2004-2009 Chris Corbyn 00006 * 00007 * For the full copyright and license information, please view the LICENSE 00008 * file that was distributed with this source code. 00009 */ 00010 00011 //@require 'Swift/Events/EventObject.php'; 00012 //@require 'Swift/Transport.php'; 00013 00014 /** 00015 * Generated when a command is sent over an SMTP connection. 00016 * @package Swift 00017 * @subpackage Events 00018 * @author Chris Corbyn 00019 */ 00020 class Swift_Events_CommandEvent extends Swift_Events_EventObject 00021 { 00022 00023 /** 00024 * The command sent to the server. 00025 * @var string 00026 */ 00027 private $_command; 00028 00029 /** 00030 * An array of codes which a successful response will contain. 00031 * @var int[] 00032 */ 00033 private $_successCodes = array(); 00034 00035 /** 00036 * Create a new CommandEvent for $source with $command. 00037 * @param Swift_Transport $source 00038 * @param string $command 00039 * @param array $successCodes 00040 */ 00041 public function __construct(Swift_Transport $source, 00042 $command, $successCodes = array()) 00043 { 00044 parent::__construct($source); 00045 $this->_command = $command; 00046 $this->_successCodes = $successCodes; 00047 } 00048 00049 /** 00050 * Get the command which was sent to the server. 00051 * @return string 00052 */ 00053 public function getCommand() 00054 { 00055 return $this->_command; 00056 } 00057 00058 /** 00059 * Get the numeric response codes which indicate success for this command. 00060 * @return int[] 00061 */ 00062 public function getSuccessCodes() 00063 { 00064 return $this->_successCodes; 00065 } 00066 00067 }
1.8.0