Event.php 784 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. * @author Chris Corbyn
  13. */
  14. interface Swift_Events_Event
  15. {
  16. /**
  17. * Get the source object of this event.
  18. *
  19. * @return object
  20. */
  21. public function getSource();
  22. /**
  23. * Prevent this Event from bubbling any further up the stack.
  24. *
  25. * @param bool $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. *
  31. * @return bool
  32. */
  33. public function bubbleCancelled();
  34. }