| 
<?php
 /**
 * EventListener.php - Event listener
 *
 * Allow the use of the class methods as event handlers.
 * See https://github.com/lemonphp/event for more information.
 *
 * @package jaxon-core
 * @author Thierry Feuzeu <[email protected]>
 * @copyright 2017 Thierry Feuzeu <[email protected]>
 * @license https://opensource.org/licenses/BSD-2-Clause BSD 2-Clause License
 * @link https://github.com/jaxon-php/jaxon-core
 */
 
 namespace Jaxon\Utils\Interfaces;
 
 use Lemon\Event\EventSubscriberInterface;
 
 interface EventListener extends EventSubscriberInterface
 {
 /**
 * Return an array of events to listen to.
 *
 * The array keys are event names and the value is the method name to call.
 * For instance:
 *  ['eventType' => 'methodName']
 *
 * @return array The event names to listen to
 */
 public function getEvents();
 }
 
 |