[ Index ] |
MailPress 7.2 |
[ Index ] [ Classes ] [ Functions ] [ Variables ] [ Constants ] [ Statistics ] |
[Summary view] [Print] [Text view]
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 * Generated when a command is sent over an SMTP connection. 13 * 14 * @author Chris Corbyn 15 */ 16 class Swift_Events_CommandEvent extends Swift_Events_EventObject 17 { 18 /** 19 * The command sent to the server. 20 * 21 * @var string 22 */ 23 private $command; 24 25 /** 26 * An array of codes which a successful response will contain. 27 * 28 * @var int[] 29 */ 30 private $successCodes = []; 31 32 /** 33 * Create a new CommandEvent for $source with $command. 34 * 35 * @param string $command 36 * @param array $successCodes 37 */ 38 public function __construct(Swift_Transport $source, $command, $successCodes = []) 39 { 40 parent::__construct($source); 41 $this->command = $command; 42 $this->successCodes = $successCodes; 43 } 44 45 /** 46 * Get the command which was sent to the server. 47 * 48 * @return string 49 */ 50 public function getCommand() 51 { 52 return $this->command; 53 } 54 55 /** 56 * Get the numeric response codes which indicate success for this command. 57 * 58 * @return int[] 59 */ 60 public function getSuccessCodes() 61 { 62 return $this->successCodes; 63 } 64 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue May 19 15:55:14 2020 | Cross-referenced by PHPXref 0.7.1 |