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