PHP Classes
elePHPant
Icontem

File: src/Utils/Interfaces/EventListener.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu  >  Jaxon  >  src/Utils/Interfaces/EventListener.php  >  Download  
File: src/Utils/Interfaces/EventListener.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change: Changed license to BSD 3-Clause.
Date: 2 years ago
Size: 882 bytes
 

 

Contents

Class file image Download
<?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 <thierry.feuzeu@gmail.com>
 * @copyright 2017 Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-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();
}