1 <?php
2 /**
3 * Part of the Joomla Framework Event Package
4 *
5 * @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
6 * @license GNU General Public License version 2 or later; see LICENSE
7 */
8
9 namespace Joomla\Event;
10
11 /**
12 * Interface for events.
13 * An event has a name and its propagation can be stopped (if the implementation supports it).
14 *
15 * @since 1.0
16 */
17 interface EventInterface
18 {
19 /**
20 * Get the event name.
21 *
22 * @return string The event name.
23 *
24 * @since 1.0
25 */
26 public function getName();
27
28 /**
29 * Tell if the event propagation is stopped.
30 *
31 * @return boolean True if stopped, false otherwise.
32 *
33 * @since 1.0
34 */
35 public function isStopped();
36 }
37