TransportChangeEvent.php 611B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of SwiftMailer.
  4. * (c) 2004-2009 Chris Corbyn
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * Generated when the state of a Transport is changed (i.e. stopped/started).
  11. *
  12. * @package Swift
  13. * @subpackage Events
  14. * @author Chris Corbyn
  15. */
  16. class Swift_Events_TransportChangeEvent extends Swift_Events_EventObject
  17. {
  18. /**
  19. * Get the Transport.
  20. *
  21. * @return Swift_Transport
  22. */
  23. public function getTransport()
  24. {
  25. return $this->getSource();
  26. }
  27. }