Event.php 783B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. * The minimum interface for an Event.
  11. *
  12. * @package Swift
  13. * @subpackage Events
  14. * @author Chris Corbyn
  15. */
  16. interface Swift_Events_Event
  17. {
  18. /**
  19. * Get the source object of this event.
  20. * @return object
  21. */
  22. public function getSource();
  23. /**
  24. * Prevent this Event from bubbling any further up the stack.
  25. * @param boolean $cancel, optional
  26. */
  27. public function cancelBubble($cancel = true);
  28. /**
  29. * Returns true if this Event will not bubble any further up the stack.
  30. * @return boolean
  31. */
  32. public function bubbleCancelled();
  33. }