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 to be implemented by classes depending on a dispatcher.
13 *
14 * @since 1.0
15 */
16 interface DispatcherAwareInterface
17 {
18 /**
19 * Set the dispatcher to use.
20 *
21 * @param DispatcherInterface $dispatcher The dispatcher to use.
22 *
23 * @return DispatcherAwareInterface This method is chainable.
24 *
25 * @since 1.0
26 */
27 public function setDispatcher(DispatcherInterface $dispatcher);
28 }
29