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 event dispatchers.
13 *
14 * @since 1.0
15 */
16 interface DispatcherInterface
17 {
18 /**
19 * Trigger an event.
20 *
21 * @param EventInterface|string $event The event object or name.
22 *
23 * @return EventInterface The event after being passed through all listeners.
24 *
25 * @since 1.0
26 */
27 public function triggerEvent($event);
28 }
29