1<?php 2 3/** 4 * Swift Mailer Disconnect Event 5 * Please read the LICENSE file 6 * @copyright Chris Corbyn <chris@w3style.co.uk> 7 * @author Chris Corbyn <chris@w3style.co.uk> 8 * @package Swift_Events 9 * @license GNU Lesser General Public License 10 */ 11 12 13/** 14 * Generated every time Swift disconnects from a MTA 15 * @package Swift_Events 16 * @author Chris Corbyn <chris@w3style.co.uk> 17 */ 18class Swift_Events_DisconnectEvent extends Swift_Events 19{ 20 /** 21 * A reference to the connection object 22 * @var Swift_Connection 23 */ 24 protected $connection = null; 25 26 /** 27 * Constructor 28 * @param Swift_Connection The dead connection 29 */ 30 public function __construct(Swift_Connection $connection) 31 { 32 $this->connection = $connection; 33 } 34 /** 35 * Get the connection object 36 * @return Swift_Connection 37 */ 38 public function getConnection() 39 { 40 return $this->connection; 41 } 42} 43